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