We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efd1cb4 commit 884c60fCopy full SHA for 884c60f
bash_completion
@@ -32,8 +32,12 @@ __cppsm_complete() {
32
CURRENT="${CURRENT%\"}"
33
case "$PREVIOUS" in
34
cppsm)
35
- # shellcheck disable=SC2207
36
- COMPREPLY=($(compgen -W "add build build-watch clone format init init-hello init-library list remove setup test test-watch update upgrade" -- "$CURRENT"))
+ local COMMANDS_DIR
+ COMMANDS_DIR="$(command -v cppsm)"
37
+ COMMANDS_DIR="${COMMANDS_DIR%/*}/../commands"
38
+
39
+ # shellcheck disable=SC2207 disable=SC2035
40
+ COMPREPLY=($(compgen -W "$(cd "$COMMANDS_DIR" && echo *)" -- "$CURRENT"))
41
;;
42
add)
43
# shellcheck disable=SC2207
0 commit comments