Add init command

This commit is contained in:
Joscha 2025-01-13 03:30:43 +01:00
parent 495dac4bb3
commit 1441b83a14

View file

@ -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<PathBuf>,
#[command(subcommand)]
cmd: Command,
}
fn main() {