added the changelog command

This commit is contained in:
2026-02-26 19:06:41 +01:00
parent 2973430c00
commit 5190291b30
10 changed files with 560 additions and 5 deletions

View File

@@ -45,6 +45,11 @@ pub enum Commands {
#[command(subcommand)]
cmd: EntryCommands,
},
/// Manage the changelog
Changelog {
#[command(subcommand)]
cmd: ChangelogCommands,
},
}
#[derive(Subcommand)]
@@ -67,3 +72,16 @@ pub enum EntryCommands {
name: String,
},
}
#[derive(Subcommand)]
pub enum ChangelogCommands {
/// View the current changelog
View,
/// Generate or update the changelog from git history
GenFromGit {
/// Path to the directory containing `.git/` (defaults to current dir or wiki dir).
/// Note that git will look in parent directories until it finds a `.git/`
#[arg(long)]
git_path: Option<PathBuf>,
},
}