add bash-it
This commit is contained in:
22
dot_bash_it/completion/available/lerna.completion.bash
Normal file
22
dot_bash_it/completion/available/lerna.completion.bash
Normal file
@@ -0,0 +1,22 @@
|
||||
# shellcheck shell=bash
|
||||
cite "about-completion"
|
||||
about-completion "lerna(javascript project manager tool) completion"
|
||||
|
||||
function __lerna_completion() {
|
||||
local cur compls
|
||||
|
||||
# The currently-being-completed word.
|
||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
|
||||
# Options
|
||||
compls="add bootstrap changed clean create diff exec \
|
||||
import init link list publish run version \
|
||||
--loglevel --concurrency --reject-cycles \
|
||||
--progress --sort --no-sort --help \
|
||||
--version"
|
||||
|
||||
# Tell complete what stuff to show.
|
||||
# shellcheck disable=2207
|
||||
COMPREPLY=($(compgen -W "$compls" -- "$cur"))
|
||||
}
|
||||
complete -o default -F __lerna_completion lerna
|
||||
Reference in New Issue
Block a user