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