Attribute Macro cmdr_macro::cmdr

source ·
#[cmdr]
Expand description

Macro that implements the cmdr::Scope trait for you.

The macro can be used to annotate any plain impl block it will then generate an additional impl block to implement Scope for the same type.

Right now it will search the impl block for methods starting with do_ and call them in a generated Scope::command method when the right command is received.