feat: enforce output version v1 and add version subcommand
This commit is contained in:
@@ -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"),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user