Skip to content

Commit

Permalink
add tab completion support for "repo config"
Browse files Browse the repository at this point in the history
  • Loading branch information
k-rister committed Sep 18, 2024
1 parent 545a769 commit 582ad2f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/_crucible_completions
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ _crucible_completions() {
COMPREPLY=($(compgen -W "result metric" -- "${COMP_WORDS[2]}"))
;;
repo)
COMPREPLY=($(compgen -W "info details" -- "${COMP_WORDS[2]}"))
COMPREPLY=($(compgen -W "info details config" -- "${COMP_WORDS[2]}"))
;;
update)
COMPREPLY=($(compgen -W "all crucible $(cd $CRUCIBLE_HOME/subprojects/; find . -type l | sed 'sX./XX')" -- "${COMP_WORDS[2]}"))
Expand Down Expand Up @@ -97,6 +97,9 @@ _crucible_completions() {
info|details)
COMPREPLY=($(compgen -W "all crucible $(cd $CRUCIBLE_HOME/subprojects/; find . -type l | sed 'sX./XX')" -- "${COMP_WORDS[3]}"))
;;
config)
COMPREPLY=($(compgen -W "help show" -- "${COMP_WORDS[3]}"))
;;
esac
elif [ "$(expr $num_words % 2)" -eq 0 -a ${COMP_WORDS[1]} == "rm" ]; then
case "${COMP_WORDS[2]}" in
Expand Down

0 comments on commit 582ad2f

Please sign in to comment.