formatted lerna completion and used helper function
parent
244c6a62b5
commit
3ed0063fa6
|
|
@ -1,6 +1,9 @@
|
|||
#!/bin/bash
|
||||
# Lerna autocompletion.
|
||||
function _lerna_completions() {
|
||||
|
||||
if _command_exists lerna
|
||||
then
|
||||
function _lerna_completions() {
|
||||
local cur compls
|
||||
|
||||
# The currently-being-completed word.
|
||||
|
|
@ -15,5 +18,6 @@ function _lerna_completions() {
|
|||
|
||||
# Tell complete what stuff to show.
|
||||
COMPREPLY=($(compgen -W "$compls" -- "$cur"))
|
||||
}
|
||||
complete -o default -F _lerna_completions lerna
|
||||
}
|
||||
complete -o default -F _lerna_completions lerna
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue