My personal-knowledge-system, with deeply integrated task tracking and long term goal planning capabilities.
at db 37 lines 750 B view raw
1//! Filaments 2//! My (suri.codes) personal-knowledge-system, with deeply integrated task tracking and long term goal planning capabilities. 3//! 4 5use crate::{app::App, cli::Cli}; 6use clap::Parser; 7 8mod app; 9mod cli; 10mod components; 11mod config; 12mod errors; 13mod keymap; 14mod logging; 15mod signal; 16mod tui; 17 18#[tokio::main] 19async fn main() -> color_eyre::Result<()> { 20 errors::init()?; 21 logging::init()?; 22 23 let args = Cli::parse(); 24 25 // if there is any subcommand, we want to execute that, otherwise we 26 // just run the app 27 if let Some(command) = args.command { 28 return command.process(); 29 } 30 31 // if no command we run the app 32 33 let mut app = App::new(args.tick_rate, args.frame_rate)?; 34 app.run().await?; 35 36 Ok(()) 37}