1
0
mirror of https://github.com/juanfont/headscale.git synced 2026-02-07 20:04:00 +01:00
juanfont.headscale/cmd/headscale
Kristoffer Dalby d6c39e65a5 cmd/headscale/cli: add printListOutput to centralise table-vs-JSON branching
Add a helper that checks the --output flag and either serialises as
JSON/YAML or invokes a table-rendering callback. This removes the
repeated format,_ := cmd.Flags().GetString("output") + if-branch from
the five list commands.
2026-02-20 11:42:07 +01:00
..
cli cmd/headscale/cli: add printListOutput to centralise table-vs-JSON branching 2026-02-20 11:42:07 +01:00
headscale_test.go all: fix golangci-lint issues (#3064) 2026-02-06 21:45:32 +01:00
headscale.go all: fix golangci-lint issues (#3064) 2026-02-06 21:45:32 +01:00