Lints the completion command
This commit is contained in:
parent
25069f4877
commit
9fd8dcbca0
@ -5,11 +5,11 @@ _kickstart_autocomplete() {
|
|||||||
local cur=${COM_WORDS[COM_CWORD]}
|
local cur=${COM_WORDS[COM_CWORD]}
|
||||||
|
|
||||||
if [ "$COMP_CWORD" -eq 1 ]; then
|
if [ "$COMP_CWORD" -eq 1 ]; then
|
||||||
COMPREPLY=( $(compgen -W "`kickstart commands`" -- "$cur") )
|
COMPREPLY=( $(compgen -W "$(kickstart commands)" -- "$cur") )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$COMP_CWORD" -eq 2 ] && [[ "${COMP_WORDS[1]}" == "doc" ]]; then
|
if [ "$COMP_CWORD" -eq 2 ] && [[ "${COMP_WORDS[1]}" == "doc" ]]; then
|
||||||
COMPREPLY=( $(compgen -W "`kickstart doc 2> /dev/null`" -- $cur) )
|
COMPREPLY=( $(compgen -W "$(kickstart doc 2> /dev/null)" -- "$cur") )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
root_dir=$(kickstart root-dir)
|
root_dir=$(kickstart root-dir)
|
||||||
find "$root_dir"/lib -maxdepth | cut -f2- -d'-'
|
find "$root_dir"/lib -d 1 | cut -f2- -d'-'
|
||||||
|
Loading…
Reference in New Issue
Block a user