#[fallback_command]
Expand description

Registers a function that is called when no other bitbar::command matches.

  • It must take as arguments the subcommand name as a String and the remaining arguments as a Vec<String>.
  • It must return a member of the bitbar::CommandOutput trait.
  • It can be a fn or an async fn. In the latter case, tokio’s threaded runtime will be used. (This requires the tokio feature, which is on by default, or either of the tokio02 or tokio03 features, which are not.)

If this attribute isn’t used, bitbar will handle unknown subcommands by sending a notification and exiting.

Using this requires a main function annotated with bitbar::main.