Files
snitch/cmd/json.go
2025-12-21 12:22:01 +01:00

19 lines
395 B
Go

package cmd
import (
"github.com/spf13/cobra"
)
var jsonCmd = &cobra.Command{
Use: "json [filters...]",
Short: "One-shot json output of connections",
Long: `One-shot json output of connections. This is an alias for "ls -o json".`,
Run: func(cmd *cobra.Command, args []string) {
runListCommand("json", args)
},
}
func init() {
rootCmd.AddCommand(jsonCmd)
addFilterFlags(jsonCmd)
}