1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-16 03:46:10 +00:00

update completion scripts

This commit is contained in:
deadc0de6
2019-11-27 19:23:45 +01:00
parent 723ff3dda2
commit a235115db3
4 changed files with 36 additions and 36 deletions

View File

@@ -34,14 +34,14 @@ _dotdrop ()
(command)
local -a subcommands
subcommands=(
'install'
'import'
'compare'
'update'
'remove'
'listfiles'
'detail'
'list'
'install[\[-VbtfndDa\] \[-c <path>\] \[-p <profile>\] \[<key>...\]]'
'import[\[-Vbdf\] \[-c <path>\] \[-p <profile>\]]'
'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>\]]'
'detail[\[-Vb\] \[-c <path>\] \[-p <profile>\] \[<key>...\]]'
'profiles[\[-Vb\] \[-c <path>\]]'
)
_values 'dotdrop' $subcommands
;;
@@ -63,14 +63,14 @@ _dotdrop ()
remove)
_dotdrop-remove
;;
listfiles)
_dotdrop-listfiles
files)
_dotdrop-files
;;
detail)
_dotdrop-detail
;;
list)
_dotdrop-list
profiles)
_dotdrop-profiles
;;
esac
;;
@@ -228,7 +228,7 @@ _dotdrop-remove ()
fi
}
_dotdrop-listfiles ()
_dotdrop-files ()
{
local context state state_descr line
typeset -A opt_args
@@ -271,7 +271,7 @@ _dotdrop-detail ()
fi
}
_dotdrop-list ()
_dotdrop-profiles ()
{
local context state state_descr line
typeset -A opt_args

View File

@@ -39,9 +39,9 @@ _dotdrop.sh ()
'compare'
'update'
'remove'
'listfiles'
'files'
'detail'
'list'
'profiles'
)
_values 'dotdrop.sh' $subcommands
;;
@@ -63,14 +63,14 @@ _dotdrop.sh ()
remove)
_dotdrop.sh-remove
;;
listfiles)
_dotdrop.sh-listfiles
files)
_dotdrop.sh-files
;;
detail)
_dotdrop.sh-detail
;;
list)
_dotdrop.sh-list
profiles)
_dotdrop.sh-profiles
;;
esac
;;
@@ -228,7 +228,7 @@ _dotdrop.sh-remove ()
fi
}
_dotdrop.sh-listfiles ()
_dotdrop.sh-files ()
{
local context state state_descr line
typeset -A opt_args
@@ -271,7 +271,7 @@ _dotdrop.sh-detail ()
fi
}
_dotdrop.sh-list ()
_dotdrop.sh-profiles ()
{
local context state state_descr line
typeset -A opt_args

View File

@@ -5,7 +5,7 @@ _dotdrop()
cur="${COMP_WORDS[COMP_CWORD]}"
if [ $COMP_CWORD -eq 1 ]; then
COMPREPLY=( $( compgen -W '-h --help -v --version install import compare update remove listfiles detail list' -- $cur) )
COMPREPLY=( $( compgen -W '-h --help -v --version install import compare update remove files detail profiles' -- $cur) )
else
case ${COMP_WORDS[1]} in
install)
@@ -23,14 +23,14 @@ _dotdrop()
remove)
_dotdrop_remove
;;
listfiles)
_dotdrop_listfiles
files)
_dotdrop_files
;;
detail)
_dotdrop_detail
;;
list)
_dotdrop_list
profiles)
_dotdrop_profiles
;;
esac
@@ -87,7 +87,7 @@ _dotdrop_remove()
fi
}
_dotdrop_listfiles()
_dotdrop_files()
{
local cur
cur="${COMP_WORDS[COMP_CWORD]}"
@@ -107,7 +107,7 @@ _dotdrop_detail()
fi
}
_dotdrop_list()
_dotdrop_profiles()
{
local cur
cur="${COMP_WORDS[COMP_CWORD]}"

View File

@@ -5,7 +5,7 @@ _dotdropsh()
cur="${COMP_WORDS[COMP_CWORD]}"
if [ $COMP_CWORD -eq 1 ]; then
COMPREPLY=( $( compgen -W '-h --help -v --version install import compare update remove listfiles detail list' -- $cur) )
COMPREPLY=( $( compgen -W '-h --help -v --version install import compare update remove files detail profiles' -- $cur) )
else
case ${COMP_WORDS[1]} in
install)
@@ -23,14 +23,14 @@ _dotdropsh()
remove)
_dotdropsh_remove
;;
listfiles)
_dotdropsh_listfiles
files)
_dotdropsh_files
;;
detail)
_dotdropsh_detail
;;
list)
_dotdropsh_list
profiles)
_dotdropsh_profiles
;;
esac
@@ -87,7 +87,7 @@ _dotdropsh_remove()
fi
}
_dotdropsh_listfiles()
_dotdropsh_files()
{
local cur
cur="${COMP_WORDS[COMP_CWORD]}"
@@ -107,7 +107,7 @@ _dotdropsh_detail()
fi
}
_dotdropsh_list()
_dotdropsh_profiles()
{
local cur
cur="${COMP_WORDS[COMP_CWORD]}"