Skip to content

Commit

Permalink
subcommands/results: Add click choice options
Browse files Browse the repository at this point in the history
Signed-off-by: Arisu Tachibana <[email protected]>
  • Loading branch information
aliceinwire committed Dec 25, 2024
1 parent 236f507 commit f74deb4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kcidev/subcommands/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ def cmd_builds(data, commit, download_logs, status):
)
@click.option(
"--action",
type=click.Choice(["summary", "trees", "builds"], case_sensitive=True),
help="Select desired results action",
)
@click.option(
Expand All @@ -189,7 +190,8 @@ def cmd_builds(data, commit, download_logs, status):
)
@click.option(
"--status",
help="Status of test result: all, pass, fail, inconclusive",
type=click.Choice(["all", "pass", "fail", "inconclusive"], case_sensitive=True),
help="Status of test result",
default="all",
)
@click.pass_context
Expand Down

0 comments on commit f74deb4

Please sign in to comment.