Skip to main content

track/cli/handlers/
mod.rs

1//! Command handler implementations grouped by domain.
2
3mod alias;
4mod completion;
5mod config;
6mod link;
7mod llm_help;
8mod migrate;
9mod repo;
10mod scrap;
11mod sync;
12mod task;
13mod todo;
14
15pub use alias::handle_alias;
16pub use completion::{handle_complete, handle_completion};
17pub use config::handle_config;
18pub use link::handle_link;
19pub use llm_help::handle_llm_help;
20pub use migrate::handle_migrate;
21pub use repo::handle_repo;
22pub use scrap::handle_scrap;
23pub use sync::handle_sync;
24pub use task::{
25    handle_archive, handle_desc, handle_info, handle_list, handle_new, handle_switch, handle_ticket,
26};
27pub use todo::handle_todo;
28
29/// Shared database access for command handlers.
30use crate::db::Database;
31
32pub struct CommandCtx<'a> {
33    pub db: &'a Database,
34}
35
36impl<'a> CommandCtx<'a> {
37    pub fn new(db: &'a Database) -> Self {
38        Self { db }
39    }
40}