diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-02-23 02:35:02 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-02-23 02:35:02 +0900 |
| commit | 7e524634452f12cf39af6c5dee9434ed24986a7d (patch) | |
| tree | bb6dca93b94e4ff4ced517bb12d9f4b590e830f7 /print.go | |
| parent | 89970f51970b320430852ed57dcfc9d6c841322e (diff) | |
fortify: integrate command handler
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'print.go')
| -rw-r--r-- | print.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -18,7 +18,7 @@ import ( "git.gensokyo.uk/security/fortify/internal/state" ) -func printShowSystem(output io.Writer, short bool) { +func printShowSystem(output io.Writer, short, flagJSON bool) { t := newPrinter(output) defer t.MustFlush() @@ -43,7 +43,7 @@ func printShowSystem(output io.Writer, short bool) { func printShowInstance( output io.Writer, now time.Time, instance *state.State, config *fst.Config, - short bool) { + short, flagJSON bool) { if flagJSON { if instance != nil { printJSON(output, short, instance) @@ -190,7 +190,7 @@ func printShowInstance( } } -func printPs(output io.Writer, now time.Time, s state.Store, short bool) { +func printPs(output io.Writer, now time.Time, s state.Store, short, flagJSON bool) { var entries state.Entries if e, err := state.Join(s); err != nil { log.Fatalf("cannot join store: %v", err) |
