1
0
mirror of https://github.com/juanfont/headscale.git synced 2026-02-07 20:04:00 +01:00
juanfont.headscale/cmd/headscale/cli
Kristoffer Dalby 095106f498 cmd/headscale/cli: convert remaining commands to RunE
Convert the 10 commands that were still using Run with
ErrorOutput/SuccessOutput or log.Fatal/os.Exit:

- backfillNodeIPsCmd: use grpcRunE-style manual connection with
  error returns; simplify the confirm/force logic
- getPolicy, setPolicy, checkPolicy: replace ErrorOutput with
  fmt.Errorf returns in both the bypass-gRPC and gRPC paths
- serveCmd, configTestCmd: replace log.Fatal with error returns
- mockOidcCmd: replace log.Error+os.Exit with error return
- versionCmd, generatePrivateKeyCmd: replace SuccessOutput with
  printOutput
- dumpConfigCmd: return the error instead of swallowing it
2026-02-20 11:42:07 +01:00
..
api_key.go cmd/headscale/cli: switch to RunE with grpcRunE and error returns 2026-02-20 11:42:07 +01:00
configtest.go cmd/headscale/cli: convert remaining commands to RunE 2026-02-20 11:42:07 +01:00
debug.go cmd/headscale/cli: switch to RunE with grpcRunE and error returns 2026-02-20 11:42:07 +01:00
dump_config.go cmd/headscale/cli: convert remaining commands to RunE 2026-02-20 11:42:07 +01:00
generate.go cmd/headscale/cli: convert remaining commands to RunE 2026-02-20 11:42:07 +01:00
health.go cmd/headscale/cli: switch to RunE with grpcRunE and error returns 2026-02-20 11:42:07 +01:00
mockoidc.go cmd/headscale/cli: convert remaining commands to RunE 2026-02-20 11:42:07 +01:00
nodes.go cmd/headscale/cli: convert remaining commands to RunE 2026-02-20 11:42:07 +01:00
policy.go cmd/headscale/cli: convert remaining commands to RunE 2026-02-20 11:42:07 +01:00
preauthkeys.go cmd/headscale/cli: switch to RunE with grpcRunE and error returns 2026-02-20 11:42:07 +01:00
pterm_style.go
root_test.go cli: do not show new pre-releases on stable (#2813) 2025-10-24 13:15:53 +02:00
root.go cmd/headscale/cli: silence cobra error/usage output and centralise error formatting 2026-02-20 11:42:07 +01:00
serve.go cmd/headscale/cli: convert remaining commands to RunE 2026-02-20 11:42:07 +01:00
users.go cmd/headscale/cli: switch to RunE with grpcRunE and error returns 2026-02-20 11:42:07 +01:00
utils.go cmd/headscale/cli: switch to RunE with grpcRunE and error returns 2026-02-20 11:42:07 +01:00
version.go cmd/headscale/cli: convert remaining commands to RunE 2026-02-20 11:42:07 +01:00