aboutsummaryrefslogtreecommitdiffhomepage
path: root/print.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-02-23 02:35:02 +0900
committerOphestra <cat@gensokyo.uk>2025-02-23 02:35:02 +0900
commit7e524634452f12cf39af6c5dee9434ed24986a7d (patch)
treebb6dca93b94e4ff4ced517bb12d9f4b590e830f7 /print.go
parent89970f51970b320430852ed57dcfc9d6c841322e (diff)
fortify: integrate command handler
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'print.go')
-rw-r--r--print.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/print.go b/print.go
index 32e8546d..198136bf 100644
--- a/print.go
+++ b/print.go
@@ -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)