Return zets as JSON if --json or -j is passed

This commit is contained in:
Oliver Davies 2025-09-30 18:00:00 +01:00
parent 035d575f0e
commit 329d6d34e0
4 changed files with 88 additions and 4 deletions

View file

@ -6,6 +6,8 @@ import (
"github.com/spf13/cobra"
)
var jsonOutput bool
// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Use: "zet",