Skip to main content

command

Attribute Macro command 

Source
#[command]
Expand description

Attribute macro: #[command(name = "...")] or #[module_cli(name = "...")] - on struct: marks CLI entry point. On impl block: generates cli_spec(). Same attribute works for both.