diff options
| author | Ophestra <cat@gensokyo.uk> | 2024-12-21 00:32:34 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2024-12-21 12:29:04 +0900 |
| commit | 68660a2ad489871ca9575ca2a56ca5ad3c79e124 (patch) | |
| tree | 4b36ca2401bbed3c7b01ad22e2ba91e43a36fc48 /comp/_fortify | |
| parent | b9cc318314f8e398ea38e25756f0f544f77fb063 (diff) | |
fortify: config/state pretty-print subcommand
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'comp/_fortify')
| -rw-r--r-- | comp/_fortify | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/comp/_fortify b/comp/_fortify index 127675be..bad412ef 100644 --- a/comp/_fortify +++ b/comp/_fortify @@ -27,6 +27,7 @@ _fortify_run() { _fortify_cmds=( "app:Launch app defined by the specified config 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" "license:Show full license text" @@ -34,7 +35,7 @@ _fortify_run() { "help:Show help message" ) if (( CURRENT == 1 )); then - _describe -t commands 'fortify command' _fortify_cmds || compadd "$@" + _describe -t commands 'action' _fortify_cmds || compadd "$@" else local curcontext="$curcontext" cmd="${${_fortify_cmds[(r)$words[1]:*]%%:*}}" @@ -48,4 +49,5 @@ _fortify_run() { _arguments -C \ '-v[Verbose output]' \ + '--json[Format output in JSON when applicable]' \ '*::fortify command:_fortify_commands'
\ No newline at end of file |
