Coding style tweaks.
This commit is contained in:
parent
1b248b5502
commit
4c8ff90ab7
@ -30,22 +30,22 @@ _svn()
|
|||||||
case $prev in
|
case $prev in
|
||||||
--config-dir)
|
--config-dir)
|
||||||
_filedir -d
|
_filedir -d
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
-F|--file|--targets)
|
-F|--file|--targets)
|
||||||
_filedir
|
_filedir
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
--encoding)
|
--encoding)
|
||||||
COMPREPLY=( $( compgen -W '$( iconv --list | \
|
COMPREPLY=( $( compgen -W '$( iconv --list | \
|
||||||
sed -e "s@//@@;" )' -- "$cur" ) )
|
sed -e "s@//@@;" )' -- "$cur" ) )
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
--editor-cmd|--diff-cmd|--diff3-cmd)
|
--editor-cmd|--diff-cmd|--diff3-cmd)
|
||||||
COMP_WORDS=(COMP_WORDS[0] $cur)
|
COMP_WORDS=(COMP_WORDS[0] $cur)
|
||||||
COMP_CWORD=1
|
COMP_CWORD=1
|
||||||
_command
|
_command
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -55,172 +55,125 @@ _svn()
|
|||||||
# possible options for the command
|
# possible options for the command
|
||||||
case $command in
|
case $command in
|
||||||
add)
|
add)
|
||||||
options='--auto-props --no-auto-props \
|
options='--auto-props --no-auto-props --force --targets
|
||||||
--force --targets --no-ignore \
|
--no-ignore --non-recursive -N -q --quiet'
|
||||||
--non-recursive -N -q --quiet'
|
|
||||||
;;
|
;;
|
||||||
blame|annotate|ann|praise)
|
blame|annotate|ann|praise)
|
||||||
options='-r --revisions --username \
|
options='-r --revisions --username --password
|
||||||
--password --no-auth-cache \
|
--no-auth-cache --non-interactive -v --verbose
|
||||||
--non-interactive -v \
|
--incremental --xml'
|
||||||
--verbose --incremental --xml'
|
|
||||||
;;
|
;;
|
||||||
cat)
|
cat)
|
||||||
options='-r --revision --username \
|
options='-r --revision --username --password
|
||||||
--password --no-auth-cache \
|
--no-auth-cache --non-interactive'
|
||||||
--non-interactive'
|
|
||||||
;;
|
;;
|
||||||
checkout|co)
|
checkout|co)
|
||||||
options='-r --revision -q --quiet -N \
|
options='-r --revision -q --quiet -N --non-recursive
|
||||||
--non-recursive --username \
|
--username --password --no-auth-cache
|
||||||
--password --no-auth-cache \
|
--non-interactive --ignore-externals'
|
||||||
--non-interactive \
|
|
||||||
--ignore-externals'
|
|
||||||
;;
|
;;
|
||||||
cleanup)
|
cleanup)
|
||||||
options='--diff3-cmd'
|
options='--diff3-cmd'
|
||||||
;;
|
;;
|
||||||
commit|ci)
|
commit|ci)
|
||||||
options='-m --message -F --file \
|
options='-m --message -F --file --encoding --force-log -q
|
||||||
--encoding --force-log -q \
|
--quiet --non-recursive -N --targets --editor-cmd
|
||||||
--quiet --non-recursive -N \
|
--username --password --no-auth-cache
|
||||||
--targets --editor-cmd \
|
--non-interactive --no-unlock'
|
||||||
--username --password \
|
|
||||||
--no-auth-cache \
|
|
||||||
--non-interactive --no-unlock'
|
|
||||||
;;
|
;;
|
||||||
copy|cp)
|
copy|cp)
|
||||||
options='-m --message -F --file \
|
options='-m --message -F --file --encoding --force-log -r
|
||||||
--encoding --force-log -r \
|
--revision -q --quiet --editor-cmd -username
|
||||||
--revision -q --quiet \
|
--password --no-auth-cache --non-interactive'
|
||||||
--editor-cmd -username \
|
|
||||||
--password --no-auth-cache \
|
|
||||||
--non-interactive'
|
|
||||||
;;
|
;;
|
||||||
delete|del|remove|rm)
|
delete|del|remove|rm)
|
||||||
options='--force -m --message -F \
|
options='--force -m --message -F --file --encoding
|
||||||
--file --encoding --force-log \
|
--force-log -q --quiet --targets --editor-cmd
|
||||||
-q --quiet --targets \
|
--username --password --no-auth-cache
|
||||||
--editor-cmd -username \
|
--non-interactive'
|
||||||
--password --no-auth-cache \
|
|
||||||
--non-interactive'
|
|
||||||
;;
|
;;
|
||||||
diff|di)
|
diff|di)
|
||||||
options='-r --revision -x --extensions \
|
options='-r --revision -x --extensions --diff-cmd
|
||||||
--diff-cmd --no-diff-deleted \
|
--no-diff-deleted -N --non-recursive --username
|
||||||
-N --non-recursive --username \
|
--password --no-auth-cache --non-interactive
|
||||||
--password --no-auth-cache \
|
--force --old --new --notice-ancestry'
|
||||||
--non-interactive --force \
|
|
||||||
--old --new --notice-ancestry'
|
|
||||||
;;
|
;;
|
||||||
export)
|
export)
|
||||||
options='-r --revision -q --quiet \
|
options='-r --revision -q --quiet --username --password
|
||||||
--username --password \
|
--no-auth-cache --non-interactive -N
|
||||||
--no-auth-cache \
|
--non-recursive --force --native-eol
|
||||||
--non-interactive -N \
|
--ignore-externals'
|
||||||
--non-recursive --force \
|
|
||||||
--native-eol --ignore-externals'
|
|
||||||
;;
|
;;
|
||||||
import)
|
import)
|
||||||
options='--auto-props --no-auto-props \
|
options='--auto-props --no-auto-props -m --message -F
|
||||||
-m --message -F --file \
|
--file --encoding --force-log -q --quiet
|
||||||
--encoding --force-log -q \
|
--non-recursive --no-ignore --editor-cmd
|
||||||
--quiet --non-recursive \
|
--username --password --no-auth-cache
|
||||||
--no-ignore --editor-cmd \
|
--non-interactive'
|
||||||
--username --password \
|
|
||||||
--no-auth-cache \
|
|
||||||
--non-interactive'
|
|
||||||
;;
|
;;
|
||||||
info)
|
info)
|
||||||
options='--username --password \
|
options='--username --password --no-auth-cache
|
||||||
--no-auth-cache \
|
--non-interactive -r --revision --xml --targets
|
||||||
--non-interactive -r \
|
-R --recursive --incremental'
|
||||||
--revision --xml --targets \
|
|
||||||
-R --recursive --incremental'
|
|
||||||
;;
|
;;
|
||||||
list|ls)
|
list|ls)
|
||||||
options='-r --revision -v --verbose -R \
|
options='-r --revision -v --verbose -R --recursive
|
||||||
--recursive --username \
|
--username --password --no-auth-cache
|
||||||
--password --no-auth-cache \
|
--non-interactive --incremental --xml'
|
||||||
--non-interactive \
|
|
||||||
--incremental --xml'
|
|
||||||
;;
|
;;
|
||||||
lock)
|
lock)
|
||||||
options='-m --message -F --file \
|
options='-m --message -F --file --encoding --force-log
|
||||||
--encoding --force-log \
|
--targets --force --username --password
|
||||||
--targets --force --username \
|
--no-auth-cache --non-interactive'
|
||||||
--password --no-auth-cache \
|
|
||||||
--non-interactive'
|
|
||||||
;;
|
;;
|
||||||
log)
|
log)
|
||||||
options='-r --revision -v --verbose \
|
options='-r --revision -v --verbose --targets --username
|
||||||
--targets --username \
|
--password --no-auth-cache --non-interactive
|
||||||
--password --no-auth-cache \
|
--stop-on-copy --incremental --xml -q --quiet
|
||||||
--non-interactive \
|
--limit'
|
||||||
--stop-on-copy --incremental \
|
;;
|
||||||
--xml -q --quiet --limit'
|
|
||||||
;;
|
|
||||||
merge)
|
merge)
|
||||||
options='-r --revision -N \
|
options='-r --revision -N --non-recursive -q --quiet
|
||||||
--non-recursive -q --quiet \
|
--force --dry-run --diff3-cmd --username
|
||||||
--force --dry-run --diff3-cmd \
|
--password --no-auth-cache --non-interactive
|
||||||
--username --password \
|
--ignore-ancestry'
|
||||||
--no-auth-cache \
|
|
||||||
--non-interactive \
|
|
||||||
--ignore-ancestry'
|
|
||||||
;;
|
;;
|
||||||
mkdir)
|
mkdir)
|
||||||
options='-m --message -F --file \
|
options='-m --message -F --file --encoding --force-log -q
|
||||||
--encoding --force-log -q \
|
--quiet --editor-cmd --username --password
|
||||||
--quiet --editor-cmd \
|
--no-auth-cache --non-interactive'
|
||||||
--username --password \
|
|
||||||
--no-auth-cache \
|
|
||||||
--non-interactive'
|
|
||||||
;;
|
;;
|
||||||
move|mv|rename|ren)
|
move|mv|rename|ren)
|
||||||
options='-m --message -F --file \
|
options='-m --message -F --file --encoding --force-log -r
|
||||||
--encoding --force-log -r \
|
--revision -q --quiet --force --editor-cmd
|
||||||
--revision -q --quiet \
|
--username --password --no-auth-cache
|
||||||
--force --editor-cmd \
|
--non-interactive'
|
||||||
--username --password \
|
|
||||||
--no-auth-cache \
|
|
||||||
--non-interactive'
|
|
||||||
;;
|
;;
|
||||||
propdel|pdel|pd)
|
propdel|pdel|pd)
|
||||||
options='-q --quiet -R --recursive -r \
|
options='-q --quiet -R --recursive -r --revision --revprop
|
||||||
--revision --revprop \
|
--username --password --no-auth-cache
|
||||||
--username --password \
|
--non-interactive'
|
||||||
--no-auth-cache \
|
|
||||||
--non-interactive'
|
|
||||||
;;
|
;;
|
||||||
propedit|pedit|pe)
|
propedit|pedit|pe)
|
||||||
options='-r --revision --revprop \
|
options='-r --revision --revprop --encoding --editor-cmd
|
||||||
--encoding --editor-cmd \
|
--username --password --no-auth-cache
|
||||||
--username --password \
|
--non-interactive --force'
|
||||||
--no-auth-cache \
|
|
||||||
--non-interactive --force'
|
|
||||||
;;
|
;;
|
||||||
propget|pget|pg)
|
propget|pget|pg)
|
||||||
options='-R --recursive -r --revision \
|
options='-R --recursive -r --revision --revprop --strict
|
||||||
--revprop --strict --username \
|
--username --password --no-auth-cache
|
||||||
--password --no-auth-cache \
|
--non-interactive'
|
||||||
--non-interactive'
|
|
||||||
;;
|
;;
|
||||||
proplist|plist|pl)
|
proplist|plist|pl)
|
||||||
options='-v --verbose -R --recursive \
|
options='-v --verbose -R --recursive -r --revision
|
||||||
-r --revision --revprop -q \
|
--revprop -q --quiet --username --password
|
||||||
--quiet --username --password \
|
--no-auth-cache --non-interactive'
|
||||||
--no-auth-cache \
|
|
||||||
--non-interactive'
|
|
||||||
;;
|
;;
|
||||||
propset|pset|ps)
|
propset|pset|ps)
|
||||||
options='-F --file -q --quiet \
|
options='-F --file -q --quiet --targets -R --recursive
|
||||||
--targets -R --recursive \
|
--revprop --encoding --username --password
|
||||||
--revprop --encoding \
|
--no-auth-cache --non-interactive -r --revision
|
||||||
--username --password \
|
--force'
|
||||||
--no-auth-cache \
|
|
||||||
--non-interactive -r \
|
|
||||||
--revision --force'
|
|
||||||
;;
|
;;
|
||||||
resolved)
|
resolved)
|
||||||
options='--targets -R --recursive -q --quiet'
|
options='--targets -R --recursive -q --quiet'
|
||||||
@ -229,33 +182,24 @@ _svn()
|
|||||||
options='--targets -R --recursive -q --quiet'
|
options='--targets -R --recursive -q --quiet'
|
||||||
;;
|
;;
|
||||||
status|stat|st)
|
status|stat|st)
|
||||||
options='-u --show-updates -v \
|
options='-u --show-updates -v --verbose -N --non-recursive
|
||||||
--verbose -N --non-recursive \
|
-q --quiet --username --password --no-auth-cache
|
||||||
-q --quiet --username \
|
--non-interactive --no-ignore --ignore-externals
|
||||||
--password --no-auth-cache \
|
--incremental --xml'
|
||||||
--non-interactive --no-ignore \
|
|
||||||
--ignore-externals \
|
|
||||||
--incremental --xml'
|
|
||||||
;;
|
;;
|
||||||
switch|sw)
|
switch|sw)
|
||||||
options='--relocate -r --revision -N \
|
options='--relocate -r --revision -N --non-recursive -q
|
||||||
--non-recursive -q --quiet \
|
--quiet --username --password --no-auth-cache
|
||||||
--username --password \
|
--non-interactive --diff3-cmd'
|
||||||
--no-auth-cache \
|
|
||||||
--non-interactive --diff3-cmd'
|
|
||||||
;;
|
;;
|
||||||
unlock)
|
unlock)
|
||||||
options='--targets --force --username \
|
options='--targets --force --username --password
|
||||||
--password --no-auth-cache \
|
--no-auth-cache --non-interactive'
|
||||||
--non-interactive'
|
|
||||||
;;
|
;;
|
||||||
update|up)
|
update|up)
|
||||||
options='-r --revision -N \
|
options='-r --revision -N --non-recursive -q --quiet
|
||||||
--non-recursive -q --quiet \
|
--username --password --no-auth-cache
|
||||||
--username --password \
|
--non-interactive --diff3-cmd --ignore-externals'
|
||||||
--no-auth-cache \
|
|
||||||
--non-interactive \
|
|
||||||
--diff3-cmd --ignore-externals'
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
options="$options --help -h --config-dir"
|
options="$options --help -h --config-dir"
|
||||||
@ -276,146 +220,133 @@ complete -F _svn -o filenames svn
|
|||||||
|
|
||||||
_svnadmin()
|
_svnadmin()
|
||||||
{
|
{
|
||||||
local cur prev commands options mode
|
local cur prev commands options mode
|
||||||
|
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
_get_comp_words_by_ref cur prev
|
_get_comp_words_by_ref cur prev
|
||||||
|
|
||||||
commands='create deltify dump help ? hotcopy list-dblogs \
|
commands='create deltify dump help ? hotcopy list-dblogs list-unused-dblogs
|
||||||
list-unused-dblogs load lslocks lstxns recover rmlocks \
|
load lslocks lstxns recover rmlocks rmtxns setlog verify'
|
||||||
rmtxns setlog verify'
|
|
||||||
|
|
||||||
if [[ $COMP_CWORD -eq 1 ]] ; then
|
if [[ $COMP_CWORD -eq 1 ]] ; then
|
||||||
if [[ "$cur" == -* ]]; then
|
if [[ "$cur" == -* ]]; then
|
||||||
COMPREPLY=( $( compgen -W '--version' -- $cur ) )
|
COMPREPLY=( $( compgen -W '--version' -- $cur ) )
|
||||||
else
|
|
||||||
COMPREPLY=( $( compgen -W "$commands" -- $cur ) )
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
case $prev in
|
COMPREPLY=( $( compgen -W "$commands" -- $cur ) )
|
||||||
--config-dir)
|
|
||||||
_filedir -d
|
|
||||||
return 0;
|
|
||||||
;;
|
|
||||||
--fs-type)
|
|
||||||
COMPREPLY=( $( compgen -W 'fsfs bdb' -- $cur ) )
|
|
||||||
return 0;
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
command=${COMP_WORDS[1]}
|
|
||||||
|
|
||||||
if [[ "$cur" == -* ]]; then
|
|
||||||
# possible options for the command
|
|
||||||
case $command in
|
|
||||||
create)
|
|
||||||
options='--bdb-txn-nosync \
|
|
||||||
--bdb-log-keep --config-dir \
|
|
||||||
--fs-type'
|
|
||||||
;;
|
|
||||||
deltify)
|
|
||||||
options='-r --revision -q --quiet'
|
|
||||||
;;
|
|
||||||
dump)
|
|
||||||
options='-r --revision --incremental \
|
|
||||||
-q --quiet --deltas'
|
|
||||||
;;
|
|
||||||
hotcopy)
|
|
||||||
options='--clean-logs'
|
|
||||||
;;
|
|
||||||
load)
|
|
||||||
options='--ignore-uuid --force-uuid \
|
|
||||||
--parent-dir -q --quiet \
|
|
||||||
--use-pre-commit-hook \
|
|
||||||
--use-post-commit-hook'
|
|
||||||
;;
|
|
||||||
rmtxns)
|
|
||||||
options='-q --quiet'
|
|
||||||
;;
|
|
||||||
setlog)
|
|
||||||
options='-r --revision --bypass-hooks'
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
options="$options --help -h"
|
|
||||||
COMPREPLY=( $( compgen -W "$options" -- $cur ) )
|
|
||||||
else
|
|
||||||
if [[ "$command" == @(help|h|\?) ]]; then
|
|
||||||
COMPREPLY=( $( compgen -W "$commands" -- $cur ) )
|
|
||||||
else
|
|
||||||
_filedir
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
case $prev in
|
||||||
|
--config-dir)
|
||||||
|
_filedir -d
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--fs-type)
|
||||||
|
COMPREPLY=( $( compgen -W 'fsfs bdb' -- $cur ) )
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
return 0
|
command=${COMP_WORDS[1]}
|
||||||
|
|
||||||
|
if [[ "$cur" == -* ]]; then
|
||||||
|
# possible options for the command
|
||||||
|
case $command in
|
||||||
|
create)
|
||||||
|
options='--bdb-txn-nosync --bdb-log-keep --config-dir
|
||||||
|
--fs-type'
|
||||||
|
;;
|
||||||
|
deltify)
|
||||||
|
options='-r --revision -q --quiet'
|
||||||
|
;;
|
||||||
|
dump)
|
||||||
|
options='-r --revision --incremental -q --quiet --deltas'
|
||||||
|
;;
|
||||||
|
hotcopy)
|
||||||
|
options='--clean-logs'
|
||||||
|
;;
|
||||||
|
load)
|
||||||
|
options='--ignore-uuid --force-uuid --parent-dir -q --quiet
|
||||||
|
--use-pre-commit-hook --use-post-commit-hook'
|
||||||
|
;;
|
||||||
|
rmtxns)
|
||||||
|
options='-q --quiet'
|
||||||
|
;;
|
||||||
|
setlog)
|
||||||
|
options='-r --revision --bypass-hooks'
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
options="$options --help -h"
|
||||||
|
COMPREPLY=( $( compgen -W "$options" -- $cur ) )
|
||||||
|
else
|
||||||
|
if [[ "$command" == @(help|h|\?) ]]; then
|
||||||
|
COMPREPLY=( $( compgen -W "$commands" -- $cur ) )
|
||||||
|
else
|
||||||
|
_filedir
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
complete -F _svnadmin -o default svnadmin
|
complete -F _svnadmin -o default svnadmin
|
||||||
|
|
||||||
_svnlook()
|
_svnlook()
|
||||||
{
|
{
|
||||||
local cur prev commands options mode
|
local cur prev commands options mode
|
||||||
|
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
_get_comp_words_by_ref cur
|
_get_comp_words_by_ref cur
|
||||||
|
|
||||||
commands='author cat changed date diff dirs-changed help ? h history \
|
commands='author cat changed date diff dirs-changed help ? h history info
|
||||||
info lock log propget pget pg proplist plist pl tree uuid \
|
lock log propget pget pg proplist plist pl tree uuid youngest'
|
||||||
youngest'
|
|
||||||
|
|
||||||
if [[ $COMP_CWORD -eq 1 ]] ; then
|
if [[ $COMP_CWORD -eq 1 ]] ; then
|
||||||
if [[ "$cur" == -* ]]; then
|
if [[ "$cur" == -* ]]; then
|
||||||
COMPREPLY=( $( compgen -W '--version' -- $cur ) )
|
COMPREPLY=( $( compgen -W '--version' -- $cur ) )
|
||||||
else
|
|
||||||
COMPREPLY=( $( compgen -W "$commands" -- $cur ) )
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
command=${COMP_WORDS[1]}
|
COMPREPLY=( $( compgen -W "$commands" -- $cur ) )
|
||||||
|
|
||||||
if [[ "$cur" == -* ]]; then
|
|
||||||
# possible options for the command
|
|
||||||
case $command in
|
|
||||||
author|cat|date|dirs-changed|info|log)
|
|
||||||
options='-r --revision -t \
|
|
||||||
--transaction'
|
|
||||||
;;
|
|
||||||
changed)
|
|
||||||
options='-r --revision -t \
|
|
||||||
--transaction --copy-info'
|
|
||||||
;;
|
|
||||||
diff)
|
|
||||||
options='-r --revision -t \
|
|
||||||
--transaction \
|
|
||||||
--no-diff-deleted \
|
|
||||||
--no-diff-added \
|
|
||||||
--diff-copy-from'
|
|
||||||
;;
|
|
||||||
history)
|
|
||||||
options='-r --revision --show-ids'
|
|
||||||
;;
|
|
||||||
propget|proplist)
|
|
||||||
options='-r --revision -t \
|
|
||||||
--transaction --revprop'
|
|
||||||
;;
|
|
||||||
tree)
|
|
||||||
options='-r --revision -t \
|
|
||||||
--transaction --show-ids \
|
|
||||||
--full-paths'
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
options="$options --help -h"
|
|
||||||
COMPREPLY=( $( compgen -W "$options" -- $cur ) )
|
|
||||||
else
|
|
||||||
if [[ "$command" == @(help|h|\?) ]]; then
|
|
||||||
COMPREPLY=( $( compgen -W "$commands" -- $cur ) )
|
|
||||||
else
|
|
||||||
_filedir
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
command=${COMP_WORDS[1]}
|
||||||
|
|
||||||
return 0
|
if [[ "$cur" == -* ]]; then
|
||||||
|
# possible options for the command
|
||||||
|
case $command in
|
||||||
|
author|cat|date|dirs-changed|info|log)
|
||||||
|
options='-r --revision -t --transaction'
|
||||||
|
;;
|
||||||
|
changed)
|
||||||
|
options='-r --revision -t --transaction --copy-info'
|
||||||
|
;;
|
||||||
|
diff)
|
||||||
|
options='-r --revision -t --transaction --no-diff-deleted
|
||||||
|
--no-diff-added --diff-copy-from'
|
||||||
|
;;
|
||||||
|
history)
|
||||||
|
options='-r --revision --show-ids'
|
||||||
|
;;
|
||||||
|
propget|proplist)
|
||||||
|
options='-r --revision -t --transaction --revprop'
|
||||||
|
;;
|
||||||
|
tree)
|
||||||
|
options='-r --revision -t --transaction --show-ids
|
||||||
|
--full-paths'
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
options="$options --help -h"
|
||||||
|
COMPREPLY=( $( compgen -W "$options" -- $cur ) )
|
||||||
|
else
|
||||||
|
if [[ "$command" == @(help|h|\?) ]]; then
|
||||||
|
COMPREPLY=( $( compgen -W "$commands" -- $cur ) )
|
||||||
|
else
|
||||||
|
_filedir
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
complete -F _svnlook -o default svnlook
|
complete -F _svnlook -o default svnlook
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user