Skip to main content

builtin_command_names

Function builtin_command_names 

Source
pub fn builtin_command_names() -> Vec<String>
Expand description

The framework binary’s own subcommands — serve, migrate, makemigrations, … — read off the derived clap parser rather than hand-listed, so a new subcommand reserves its own name with nothing to remember.

These names are unavailable to an app or plugin command. Dispatch tries registered commands before the built-in parser, so a command named migrate would not collide loudly — it would quietly take over, and the next deploy would apply zero migrations and exit 0. collect_commands drops any command that lands on one of these, and says so.