Expand description
Command argument types, parsing, validation, and dispatch. Command system: argument types, parsing, validation, dispatch.
Plugins declare command arguments with types. The framework
handles parsing, validation, error messages, DeclareCommands
generation, and TabComplete responses. Built-in plugins use the
fluent builder API on PluginRegistrar;
the [Command] trait + [CommandRegistry] are an alternative
API for plugins that prefer trait-based dispatch.
Re-exports§
pub use args::Arg;pub use args::ArgValue;pub use args::CommandArg;pub use args::CommandArgs;pub use args::Validation;pub use args::parse_args;pub use args::parse_command_args;
Modules§
- args
- Command argument types, parsing, and validation.
Structs§
- Command
Registry - A registry of named commands.
Traits§
- Command
- A server command that can be executed by players or the console.