aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2024-12-21 18:51:59 +0900
committerOphestra <cat@gensokyo.uk>2024-12-21 19:06:25 +0900
commit4f4c690d38ffd58854e022067f920971a8b4e3a7 (patch)
tree56e18660d8a6bcb8aeeba5f885073f789c98a434 /main.go
parentdf7f692e6158d7fd19960c8a4f4dadaaabdc88b6 (diff)
fortify: move json indent call
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/main.go b/main.go
index d7786fd6..5821b3ca 100644
--- a/main.go
+++ b/main.go
@@ -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()