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 e6546b2cea cmd/headscale/cli: silence cobra error/usage output and centralise error formatting
Set SilenceErrors and SilenceUsage on the root command so that
cobra never prints usage text for runtime errors. A SetFlagErrorFunc
callback re-enables usage output specifically for flag-parsing
errors (the kubectl pattern).

Add printError to utils.go and switch Execute() to ExecuteC() so
the returned error is formatted as JSON/YAML when --output requests
machine-readable output.
2026-02-20 11:42:07 +01:00
..
cli cmd/headscale/cli: silence cobra error/usage output and centralise error formatting 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