Skip to main content

BUILTIN_COMMANDS

Static BUILTIN_COMMANDS 

Source
pub static BUILTIN_COMMANDS: DistributedSlice<[fn() -> Box<dyn Command>]>
Expand description

Link-time registry of Command factory functions.

The factories are thin — each produces a fresh Box<dyn Command> when invoked by rtb-cli::Application. They are expected to be cheap (no I/O, no allocation beyond the box). Heavy work belongs in Command::run.

See the module docs for the registration pattern.