remove uneeded code from _invoke completion

This commit is contained in:
Ivan Malison 2015-01-04 00:10:35 -08:00
parent 9e27928575
commit 740b71c9dd

View File

@ -7,12 +7,6 @@ function _invoke_subcommands {
LISTINGS=( $(invoke -l | tail -n+2 | sed 's/^ *//g' | while read line ; do _remove_docstrings "$line"; done;) )
for subcommand_listing in $LISTINGS
do
local delimiter_character=' '
if echo $subcommand_listings | grep ')'
then
delimiter_character=')'
fi
subcommand_listing="$(echo $subcommand_listing | cut -d "$delimiter_character" -f 1)"
local comma_separated="$(echo $subcommand_listing | tr -d ')\n' | tr '(' ',')"
local names="$(_echo_split $comma_separated ',')"
echo $names | tr '\n' ' '