headscale/cmd/headscale/cli
Kristoffer Dalby e00c899219 cmd, templates, integration: extract shared production constants
Constants the operator/test reader benefits from centralising.
Tests stay verbatim (the .golangci.yaml goconst tune skips them);
extraction here applies only where the same literal acts as
shared vocabulary across files.

  cmd/headscale/cli/strings.go (new)
    Cobra subcommand verbs and aliases shared by every list / show
    / new / delete / expire command across api_key, nodes, policy,
    preauthkeys, users — plus the Result / Created / Expiration
    column headers used in printOutput maps.

  hscontrol/templates/design.go
    cssBorderHS, cssBreakWord, cssCenter, cssOverflowWrap — shared
    styles applied across design.go, ping.go, register_confirm.go.
    spaceS already existed; switch raw "0.5rem" literals to it.

  integration/hsic/hsic.go
    binHeadscale, flagOutput, acceptJSON — names invoked across
    hsic.go and config.go.

  integration/tsic/tsic.go
    tailscaleBin — used across docker exec call sites.
2026-05-19 09:55:22 +02:00
..
api_key.go cmd, templates, integration: extract shared production constants 2026-05-19 09:55:22 +02:00
auth.go hscontrol, cli: add auth register and approve commands 2026-02-25 21:28:05 +01:00
configtest.go cmd/headscale/cli: convert remaining commands to RunE 2026-02-20 11:42:07 +01:00
debug.go Update docs for auth-id changes 2026-03-01 13:38:22 +01:00
dump_config.go cmd/headscale/cli: remove no-op Args functions from serveCmd and dumpConfigCmd 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: move errMissingParameter and Error type to their users 2026-02-20 11:42:07 +01:00
nodes.go cmd, templates, integration: extract shared production constants 2026-05-19 09:55:22 +02:00
policy.go cmd, templates, integration: extract shared production constants 2026-05-19 09:55:22 +02:00
preauthkeys.go cmd, templates, integration: extract shared production constants 2026-05-19 09:55:22 +02:00
pterm_style.go cmd/headscale/cli: use HeadscaleDateTimeFormat and util.Base10 consistently 2026-02-20 11:42:07 +01:00
root.go cmd, templates, integration: extract shared production constants 2026-05-19 09:55:22 +02:00
root_test.go cmd, templates, integration: extract shared production constants 2026-05-19 09:55:22 +02:00
serve.go cmd/headscale/cli: remove no-op Args functions from serveCmd and dumpConfigCmd 2026-02-20 11:42:07 +01:00
strings.go cmd, templates, integration: extract shared production constants 2026-05-19 09:55:22 +02:00
users.go cmd, templates, integration: extract shared production constants 2026-05-19 09:55:22 +02:00
utils.go cmd, templates, integration: extract shared production constants 2026-05-19 09:55:22 +02:00
version.go cmd/headscale/cli: convert remaining commands to RunE 2026-02-20 11:42:07 +01:00