Lints the completion command

This commit is contained in:
Bruno Tavares 2015-05-20 17:21:27 -03:00
parent 25069f4877
commit 9fd8dcbca0
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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'-'