mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Delete file that shouldn't be committed
This commit is contained in:
parent
ced4da4171
commit
27a976f5a5
1 changed files with 0 additions and 114 deletions
|
@ -1,114 +0,0 @@
|
|||
#
|
||||
# completion for yunohost
|
||||
# automatically generated from the actionsmap
|
||||
#
|
||||
|
||||
_yunohost()
|
||||
{
|
||||
local cur prev opts narg
|
||||
COMPREPLY=()
|
||||
|
||||
# the number of words already typed
|
||||
narg=${#COMP_WORDS[@]}
|
||||
|
||||
# the current word being typed
|
||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
|
||||
# If one is currently typing a category,
|
||||
# match with categorys
|
||||
if [[ $narg == 2 ]]; then
|
||||
opts="user domain app backup settings service firewall dyndns tools hook log diagnosis"
|
||||
fi
|
||||
|
||||
# If one already typed a category,
|
||||
# match the actions or the subcategories of that category
|
||||
if [[ $narg == 3 ]]; then
|
||||
# the category typed
|
||||
category="${COMP_WORDS[1]}"
|
||||
|
||||
if [[ $category == "user" ]]; then
|
||||
opts="list create delete update info group permission ssh"
|
||||
fi
|
||||
if [[ $category == "domain" ]]; then
|
||||
opts="list add registrar push_config remove dns-conf main-domain cert-status cert-install cert-renew url-available setting "
|
||||
fi
|
||||
if [[ $category == "app" ]]; then
|
||||
opts="catalog search manifest fetchlist list info map install remove upgrade change-url setting register-url makedefault ssowatconf change-label addaccess removeaccess clearaccess action config"
|
||||
fi
|
||||
if [[ $category == "backup" ]]; then
|
||||
opts="create restore list info download delete "
|
||||
fi
|
||||
if [[ $category == "settings" ]]; then
|
||||
opts="list get set reset-all reset "
|
||||
fi
|
||||
if [[ $category == "service" ]]; then
|
||||
opts="add remove start stop reload restart reload_or_restart enable disable status log regen-conf "
|
||||
fi
|
||||
if [[ $category == "firewall" ]]; then
|
||||
opts="list allow disallow upnp reload stop "
|
||||
fi
|
||||
if [[ $category == "dyndns" ]]; then
|
||||
opts="subscribe update installcron removecron "
|
||||
fi
|
||||
if [[ $category == "tools" ]]; then
|
||||
opts="adminpw maindomain postinstall update upgrade shell shutdown reboot regen-conf versions migrations"
|
||||
fi
|
||||
if [[ $category == "hook" ]]; then
|
||||
opts="add remove info list callback exec "
|
||||
fi
|
||||
if [[ $category == "log" ]]; then
|
||||
opts="list show share "
|
||||
fi
|
||||
if [[ $category == "diagnosis" ]]; then
|
||||
opts="list show get run ignore unignore "
|
||||
fi
|
||||
fi
|
||||
|
||||
# If one already typed an action or a subcategory,
|
||||
# match the actions of that subcategory
|
||||
if [[ $narg == 4 ]]; then
|
||||
# the category typed
|
||||
category="${COMP_WORDS[1]}"
|
||||
|
||||
# the action or the subcategory typed
|
||||
action_or_subcategory="${COMP_WORDS[2]}"
|
||||
|
||||
if [[ $category == "user" ]]; then
|
||||
if [[ $action_or_subcategory == "group" ]]; then
|
||||
opts="list create delete info add remove"
|
||||
fi
|
||||
if [[ $action_or_subcategory == "permission" ]]; then
|
||||
opts="list info update add remove reset"
|
||||
fi
|
||||
if [[ $action_or_subcategory == "ssh" ]]; then
|
||||
opts="list-keys add-key remove-key"
|
||||
fi
|
||||
fi
|
||||
if [[ $category == "app" ]]; then
|
||||
if [[ $action_or_subcategory == "action" ]]; then
|
||||
opts="list run"
|
||||
fi
|
||||
if [[ $action_or_subcategory == "config" ]]; then
|
||||
opts="show-panel apply"
|
||||
fi
|
||||
fi
|
||||
if [[ $category == "tools" ]]; then
|
||||
if [[ $action_or_subcategory == "migrations" ]]; then
|
||||
opts="list run state"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# If no options were found propose --help
|
||||
if [ -z "$opts" ]; then
|
||||
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||||
|
||||
if [[ $prev != "--help" ]]; then
|
||||
opts=( --help )
|
||||
fi
|
||||
fi
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
||||
return 0
|
||||
}
|
||||
|
||||
complete -F _yunohost yunohost
|
Loading…
Add table
Reference in a new issue