mirror of
https://github.com/juanfont/headscale.git
synced 2026-02-23 13:50:36 +01:00
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. |
||
|---|---|---|
| .. | ||
| api_key.go | ||
| configtest.go | ||
| debug.go | ||
| dump_config.go | ||
| generate.go | ||
| health.go | ||
| mockoidc.go | ||
| nodes.go | ||
| policy.go | ||
| preauthkeys.go | ||
| pterm_style.go | ||
| root_test.go | ||
| root.go | ||
| serve.go | ||
| users.go | ||
| utils.go | ||
| version.go | ||