Merge pull request #4 from GHPS/Better-Scriptability

Better Scriptability by Removing Unnecessary Comma in List Output
This commit is contained in:
ivan 2017-11-22 12:15:07 +03:00 revīziju iesūtīja GitHub
revīzija c528af6414
Šim parakstam datu bāzē netika atrasta zināma atslēga
GPG atslēgas ID: 4AEE18F83AFDEB23
2 mainīti faili ar 2 papildinājumiem un 2 dzēšanām

Parādīt failu

@ -133,7 +133,7 @@ def CMDConnect(aliases, command=False):
def CMDList(option, opt, value, parser): def CMDList(option, opt, value, parser):
print(', '.join(str(p) for p in conf.sections())) print(' '.join(str(p) for p in conf.sections()))
def CMDFullList(option, opt, value, parser): def CMDFullList(option, opt, value, parser):

Parādīt failu

@ -2,7 +2,7 @@ _sshch_complete()
{ {
local cur_word alias_list local cur_word alias_list
cur_word="${COMP_WORDS[COMP_CWORD]}" cur_word="${COMP_WORDS[COMP_CWORD]}"
alias_list=`sshch -l | sed 's/,//g'` alias_list=`sshch -l`
COMPREPLY=($(compgen -W "$alias_list" -- $cur_word)) COMPREPLY=($(compgen -W "$alias_list" -- $cur_word))
return 0 return 0
} }