completion: ngrok: Only complete the list in case prev is ngrok

This commit is contained in:
Noah Gorny
2021-03-15 23:08:01 +02:00
parent 035fc920ad
commit 1dfaf36d91

View File

@@ -33,10 +33,12 @@ __ngrok_completion() {
# shellcheck disable=SC2207 # shellcheck disable=SC2207
COMPREPLY=($(compgen -W "$BASE_NO_CONF --channel" -- "$curr")) COMPREPLY=($(compgen -W "$BASE_NO_CONF --channel" -- "$curr"))
;; ;;
*) ngrok)
# shellcheck disable=SC2207 # shellcheck disable=SC2207
COMPREPLY=($(compgen -W "authtoken credits http start tcp tls update version help" -- "$curr")) COMPREPLY=($(compgen -W "authtoken credits http start tcp tls update version help" -- "$curr"))
;; ;;
*) ;;
esac esac
} }