1pub mod alias;
2pub mod category;
3pub mod chat;
4pub mod handler;
5pub mod help;
6pub mod list;
7pub mod open;
8pub mod report;
9pub mod script;
10pub mod system;
11pub mod time;
12pub mod todo;
13pub mod voice;
14
15use crate::cli::SubCmd;
16use crate::config::YamlConfig;
17use crate::constants;
18
19pub fn all_command_keywords() -> Vec<&'static str> {
22 constants::cmd::all_keywords()
23}
24
25pub fn dispatch(subcmd: SubCmd, config: &mut YamlConfig) {
27 subcmd.into_handler().execute(config);
28}