diff --git a/src/main.rs b/src/main.rs index c95d564..69cf6c5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,6 +3,15 @@ use std::path::PathBuf; use clap::Parser; use directories::ProjectDirs; +/// Initialize the note repository. +#[derive(Debug, Parser)] +struct CmdInit {} + +#[derive(Debug, Parser)] +enum Command { + Init(CmdInit), +} + /// GedächtNAS - external storage for your brain. #[derive(Debug, Parser)] #[command(version)] @@ -10,6 +19,8 @@ struct Args { /// Path to the config file. #[arg(long, short)] config: Option, + #[command(subcommand)] + cmd: Command, } fn main() {