completion (improvement): remove if statement
parent
ab011cd9ba
commit
035fc920ad
|
|
@ -1,7 +1,6 @@
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
|
|
||||||
if _binary_exists ngrok; then
|
__ngrok_completion() {
|
||||||
__ngrok_completion() {
|
|
||||||
local prev=$(_get_pword)
|
local prev=$(_get_pword)
|
||||||
local curr=$(_get_cword)
|
local curr=$(_get_cword)
|
||||||
|
|
||||||
|
|
@ -39,7 +38,6 @@ if _binary_exists ngrok; then
|
||||||
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
|
||||||
}
|
}
|
||||||
|
|
||||||
complete -F __ngrok_completion ngrok
|
complete -F __ngrok_completion ngrok
|
||||||
fi
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue