macro_rules! register_commands {
($app:expr, $($schema_call:expr),+ $(,)?) => { ... };
}Expand description
Register command schemas with the Victauri plugin at app setup time.
Pass the __schema() function calls generated by #[inspectable].
This populates the CommandRegistry so that get_registry, resolve_command,
and detect_ghost_commands return real results.
§Example
ⓘ
use victauri_plugin::register_commands;
.setup(|app| {
register_commands!(app,
greet__schema(),
increment__schema(),
add_todo__schema(),
);
Ok(())
})