Skip to content

Commit

Permalink
Only suggest yaml or json files with submit
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-avalos committed Nov 23, 2024
1 parent 3fb66e0 commit 11ce495
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cli/testflinger_cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,11 @@ def _add_submit_args(self, subparsers):
parser.set_defaults(func=self.submit)
parser.add_argument("--poll", "-p", action="store_true")
parser.add_argument("--quiet", "-q", action="store_true")
parser.add_argument("filename")
parser.add_argument("filename").completer = (
argcomplete.completers.FilesCompleter(
allowednames=("*.yaml", "*.yml", "*.json")
)
)
relative = parser.add_mutually_exclusive_group()
relative.add_argument(
"--attachments-relative-to",
Expand Down

0 comments on commit 11ce495

Please sign in to comment.