#[fallback_command]Expand description
Defines a function that is called when no other bitbar::command matches.
- It must take as arguments the subcommand name as a
Stringand the remaining arguments as aVec<String>. - It must return a member of the
bitbar::CommandOutputtrait. - It can be a
fnor anasync fn. In the latter case,tokio’s threaded runtime will be used. (This requires thetokiofeature, which is on by default.)
If this attribute isn’t used, bitbar will handle unknown subcommands by sending a notification and exiting.
The function must also be registered via #[bitbar::main(fallback_command = "...")].