Skip to content

Commit

Permalink
add option --name/-n to 'buildtest buildspec validate'.
Browse files Browse the repository at this point in the history
add to tab completion
  • Loading branch information
shahzebsiddiqui committed Jun 12, 2024
1 parent 207d071 commit 7b484c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bash_completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ _buildtest ()
esac
;;
validate|val)
local opts="--buildspec --exclude --executor --tag -b -e -t -x "
local opts="--buildspec --exclude --executor --name --tag -b -e -n -t -x "
COMPREPLY=( $( compgen -W "${opts}" -- "${cur}" ) )

case "${prev}" in
Expand Down
8 changes: 8 additions & 0 deletions buildtest/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,14 @@ def buildspec_menu(self):
"help": "Specify buildspecs by tag name to validate",
},
),
(
["-n", "--name"],
{
"type": str,
"action": "append",
"help": "Specify buildspecs by name to validate",
},
),
],
},
]
Expand Down

0 comments on commit 7b484c0

Please sign in to comment.