Skip to main content

command_needs_ready

Function command_needs_ready 

Source
pub fn command_needs_ready(
    app_commands: &[Box<dyn PluginCommand>],
    plugins: &[Box<dyn Plugin>],
    name: &str,
    reserved: &[&str],
) -> Option<bool>
Expand description

Does the command named name need a live app (pools, migrated schema, on_ready fired)?

None means no app or plugin registered that name — the framework binary’s own built-in list decides. Some(false) is a command that declared itself offline via PluginCommand::needs_ready, e.g. a code generator.