feat: enforce output version v1 and add version subcommand

This commit is contained in:
2026-04-08 23:59:55 +08:00
parent a6daaff0fa
commit c4fa0eadcc
14 changed files with 117 additions and 10 deletions
+9
View File
@@ -26,3 +26,12 @@ fn parse_render_md_requires_input() {
_ => panic!("expected render-md"),
}
}
#[test]
fn parse_version_subcommand() {
let cli = Cli::try_parse_from(["gitea-pr-review", "version"]).unwrap();
match cli.command {
Commands::Version => {}
_ => panic!("expected version"),
}
}