command

Macro command 

Source
macro_rules! command {
    ($cmd:literal $(, $key:ident $(= $value:expr)? )* $(,)?) => { ... };
    (@opt $value:expr) => { ... };
    (@opt) => { ... };
}
Expand description

Macro that enforces Mikrotik command syntax at compile time.

Usage Examples:

fn main() {
   // OK
   let _ok = command!("/random command print");

   let _with_attrs = command!("/random command", attr1="value1", attr2);
}