From 68660a2ad489871ca9575ca2a56ca5ad3c79e124 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 21 Dec 2024 00:32:34 +0900 Subject: fortify: config/state pretty-print subcommand Signed-off-by: Ophestra --- comp/_fortify | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'comp') 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 -- cgit v1.3.1