use clap::Parser; use streamd::cli::{Cli, Commands}; fn main() -> miette::Result<()> { let cli = Cli::parse(); match cli.command { Some(Commands::New) => streamd::cli::commands::new::run()?, Some(Commands::Todo) => streamd::cli::commands::todo::run()?, Some(Commands::Edit { number }) => streamd::cli::commands::edit::run(number)?, Some(Commands::Timesheet) => streamd::cli::commands::timesheet::run()?, Some(Commands::Completions { shell }) => { streamd::cli::commands::completions::run(shell); } None => streamd::cli::commands::new::run()?, } Ok(()) }