1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 07:58:48 +00:00

fix completion files

This commit is contained in:
deadc0de6
2020-01-26 19:45:53 +01:00
parent e8fe9b931f
commit 8a663e7267
4 changed files with 16 additions and 12 deletions

View File

@@ -39,9 +39,9 @@ _dotdrop ()
'compare[\[-Vb\] \[-c <path>\] \[-p <profile>\]]'
'update[\[-VbfdkP\] \[-c <path>\] \[-p <profile>\]]'
'remove[\[-Vbfdk\] \[-c <path>\] \[-p <profile>\] \[<path>...\]]'
'files[\[-VbT\] \[-c <path>\] \[-p <profile>\]]'
'files[\[-VbTG\] \[-c <path>\] \[-p <profile>\]]'
'detail[\[-Vb\] \[-c <path>\] \[-p <profile>\] \[<key>...\]]'
'profiles[\[-Vb\] \[-c <path>\]]'
'profiles[\[-VbG\] \[-c <path>\]]'
)
_values 'dotdrop' $subcommands
;;
@@ -157,8 +157,6 @@ _dotdrop-compare ()
'(--cfg=-)--cfg=-' \
'(-p=-)-p=-' \
'(--profile=-)--profile=-' \
'(-o=-)-o=-' \
'(--dopts=-)--dopts=-' \
'(-C=-)-C=-' \
'(--file=-)--file=-' \
'(-i=-)-i=-' \
@@ -241,6 +239,8 @@ _dotdrop-files ()
'(--no-banner)--no-banner' \
'(-T)-T' \
'(--template)--template' \
'(-G)-G' \
'(--grepable)--grepable' \
'(-c=-)-c=-' \
'(--cfg=-)--cfg=-' \
'(-p=-)-p=-' \
@@ -282,6 +282,8 @@ _dotdrop-profiles ()
'(--verbose)--verbose' \
'(-b)-b' \
'(--no-banner)--no-banner' \
'(-G)-G' \
'(--grepable)--grepable' \
'(-c=-)-c=-' \
'(--cfg=-)--cfg=-' \

View File

@@ -157,8 +157,6 @@ _dotdrop.sh-compare ()
'(--cfg=-)--cfg=-' \
'(-p=-)-p=-' \
'(--profile=-)--profile=-' \
'(-o=-)-o=-' \
'(--dopts=-)--dopts=-' \
'(-C=-)-C=-' \
'(--file=-)--file=-' \
'(-i=-)-i=-' \
@@ -241,6 +239,8 @@ _dotdrop.sh-files ()
'(--no-banner)--no-banner' \
'(-T)-T' \
'(--template)--template' \
'(-G)-G' \
'(--grepable)--grepable' \
'(-c=-)-c=-' \
'(--cfg=-)--cfg=-' \
'(-p=-)-p=-' \
@@ -282,6 +282,8 @@ _dotdrop.sh-profiles ()
'(--verbose)--verbose' \
'(-b)-b' \
'(--no-banner)--no-banner' \
'(-G)-G' \
'(--grepable)--grepable' \
'(-c=-)-c=-' \
'(--cfg=-)--cfg=-' \

View File

@@ -63,7 +63,7 @@ _dotdrop_compare()
cur="${COMP_WORDS[COMP_CWORD]}"
if [ $COMP_CWORD -ge 2 ]; then
COMPREPLY=( $( compgen -W '-V --verbose -b --no-banner -c= --cfg= -p= --profile= -o= --dopts= -C= --file= -i= --ignore= ' -- $cur) )
COMPREPLY=( $( compgen -W '-V --verbose -b --no-banner -c= --cfg= -p= --profile= -C= --file= -i= --ignore= ' -- $cur) )
fi
}
@@ -93,7 +93,7 @@ _dotdrop_files()
cur="${COMP_WORDS[COMP_CWORD]}"
if [ $COMP_CWORD -ge 2 ]; then
COMPREPLY=( $( compgen -W '-V --verbose -b --no-banner -T --template -c= --cfg= -p= --profile= ' -- $cur) )
COMPREPLY=( $( compgen -W '-V --verbose -b --no-banner -T --template -G --grepable -c= --cfg= -p= --profile= ' -- $cur) )
fi
}
@@ -113,7 +113,7 @@ _dotdrop_profiles()
cur="${COMP_WORDS[COMP_CWORD]}"
if [ $COMP_CWORD -ge 2 ]; then
COMPREPLY=( $( compgen -W '-V --verbose -b --no-banner -c= --cfg= ' -- $cur) )
COMPREPLY=( $( compgen -W '-V --verbose -b --no-banner -G --grepable -c= --cfg= ' -- $cur) )
fi
}

View File

@@ -63,7 +63,7 @@ _dotdropsh_compare()
cur="${COMP_WORDS[COMP_CWORD]}"
if [ $COMP_CWORD -ge 2 ]; then
COMPREPLY=( $( compgen -W '-V --verbose -b --no-banner -c= --cfg= -p= --profile= -o= --dopts= -C= --file= -i= --ignore= ' -- $cur) )
COMPREPLY=( $( compgen -W '-V --verbose -b --no-banner -c= --cfg= -p= --profile= -C= --file= -i= --ignore= ' -- $cur) )
fi
}
@@ -93,7 +93,7 @@ _dotdropsh_files()
cur="${COMP_WORDS[COMP_CWORD]}"
if [ $COMP_CWORD -ge 2 ]; then
COMPREPLY=( $( compgen -W '-V --verbose -b --no-banner -T --template -c= --cfg= -p= --profile= ' -- $cur) )
COMPREPLY=( $( compgen -W '-V --verbose -b --no-banner -T --template -G --grepable -c= --cfg= -p= --profile= ' -- $cur) )
fi
}
@@ -113,7 +113,7 @@ _dotdropsh_profiles()
cur="${COMP_WORDS[COMP_CWORD]}"
if [ $COMP_CWORD -ge 2 ]; then
COMPREPLY=( $( compgen -W '-V --verbose -b --no-banner -c= --cfg= ' -- $cur) )
COMPREPLY=( $( compgen -W '-V --verbose -b --no-banner -G --grepable -c= --cfg= ' -- $cur) )
fi
}