diff options
Diffstat (limited to 'dist/comp')
| -rw-r--r-- | dist/comp/_hakurei (renamed from dist/comp/_fortify) | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/dist/comp/_fortify b/dist/comp/_hakurei index 2eeaf845..a8554268 100644 --- a/dist/comp/_fortify +++ b/dist/comp/_hakurei @@ -1,11 +1,11 @@ -#compdef fortify +#compdef hakurei -_fortify_app() { - __fortify_files +_hakurei_app() { + __hakurei_files return $? } -_fortify_run() { +_hakurei_run() { _arguments \ '--id[Reverse-DNS style Application identifier, leave empty to inherit instance identifier]:id' \ '-a[Application identity]: :_numbers' \ @@ -22,26 +22,26 @@ _fortify_run() { '--dbus-log[Force buffered logging in the D-Bus proxy]' } -_fortify_ps() { +_hakurei_ps() { _arguments \ '--short[List instances only]' } -_fortify_show() { +_hakurei_show() { _alternative \ - 'instances:domains:__fortify_instances' \ - 'files:files:__fortify_files' + 'instances:domains:__hakurei_instances' \ + 'files:files:__hakurei_files' } -__fortify_files() { - _files -g "*.(json|ftfy)" +__hakurei_files() { + _files -g "*.(json|hakurei)" return $? } -__fortify_instances() { +__hakurei_instances() { local -a out shift -p - out=( ${(f)"$(_call_program commands fortify ps --short 2>&1)"} ) + out=( ${(f)"$(_call_program commands hakurei ps --short 2>&1)"} ) if (( $#out == 0 )); then _message "No active instances" else @@ -50,26 +50,26 @@ __fortify_instances() { return $? } -(( $+functions[_fortify_commands] )) || _fortify_commands() +(( $+functions[_hakurei_commands] )) || _hakurei_commands() { - local -a _fortify_cmds - _fortify_cmds=( - "app:Launch app defined by the specified config file" + local -a _hakurei_cmds + _hakurei_cmds=( + "app:Load app from configuration file" "run:Configure and start a permissive default sandbox" - "show:Show the contents of an app configuration" - "ps:List active apps and their state" - "version:Show fortify version" + "show:Show live or local app configuration" + "ps:List active instances" + "version:Display version information" "license:Show full license text" "template:Produce a config template" "help:Show help message" ) if (( CURRENT == 1 )); then - _describe -t commands 'action' _fortify_cmds || compadd "$@" + _describe -t commands 'action' _hakurei_cmds || compadd "$@" else local curcontext="$curcontext" - cmd="${${_fortify_cmds[(r)$words[1]:*]%%:*}}" - if (( $+functions[_fortify_$cmd] )); then - _fortify_$cmd + cmd="${${_hakurei_cmds[(r)$words[1]:*]%%:*}}" + if (( $+functions[_hakurei_$cmd] )); then + _hakurei_$cmd else _message "no more options" fi @@ -77,6 +77,6 @@ __fortify_instances() { } _arguments -C \ - '-v[Verbose output]' \ + '-v[Increase log verbosity]' \ '--json[Serialise output in JSON when applicable]' \ - '*::fortify command:_fortify_commands'
\ No newline at end of file + '*::hakurei command:_hakurei_commands'
\ No newline at end of file |
