fortify: move json indent call

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2024-12-21 18:51:59 +09:00
parent df7f692e61
commit 4f4c690d38
2 changed files with 118 additions and 118 deletions

View File

@@ -106,12 +106,7 @@ func main() {
fmt.Println(license)
fmsg.Exit(0)
case "template": // print full template configuration
if s, err := json.MarshalIndent(fst.Template(), "", " "); err != nil {
fmsg.Fatalf("cannot generate template: %v", err)
panic("unreachable")
} else {
fmt.Println(string(s))
}
printJSON(fst.Template())
fmsg.Exit(0)
case "help": // print help message
flag.CommandLine.Usage()