1
0
mirror of https://github.com/juanfont/headscale.git synced 2026-02-23 13:50:36 +01:00
juanfont.headscale/cmd/headscale/cli
Kristoffer Dalby f0bf248b14 cmd/headscale/cli: deduplicate expiration parsing and api-key flag validation
Add expirationFromFlag helper that parses the --expiration flag into a
timestamppb.Timestamp, replacing identical duration-parsing blocks in
api_key.go and preauthkeys.go.

Add apiKeyIDOrPrefix helper to validate the mutually-exclusive --id and
--prefix flags, replacing the duplicated switch block in expireAPIKeyCmd
and deleteAPIKeyCmd.
2026-02-19 14:04:00 +00:00
..
api_key.go cmd/headscale/cli: deduplicate expiration parsing and api-key flag validation 2026-02-19 14:04:00 +00:00
configtest.go cmd/headscale/cli: convert remaining commands to RunE 2026-02-19 14:04:00 +00:00
debug.go cmd/headscale/cli: add mustMarkRequired helper for init-time flag validation 2026-02-19 14:04:00 +00:00
dump_config.go cmd/headscale/cli: convert remaining commands to RunE 2026-02-19 14:04:00 +00:00
generate.go cmd/headscale/cli: convert remaining commands to RunE 2026-02-19 14:04:00 +00:00
health.go cmd/headscale/cli: switch to RunE with grpcRunE and error returns 2026-02-19 14:04:00 +00:00
mockoidc.go cmd/headscale/cli: convert remaining commands to RunE 2026-02-19 14:04:00 +00:00
nodes.go cmd/headscale/cli: add confirmAction helper for force/prompt patterns 2026-02-19 14:04:00 +00:00
policy.go cmd/headscale/cli: add confirmAction helper for force/prompt patterns 2026-02-19 14:04:00 +00:00
preauthkeys.go cmd/headscale/cli: deduplicate expiration parsing and api-key flag validation 2026-02-19 14:04:00 +00: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-19 07:24:33 +00:00
serve.go cmd/headscale/cli: convert remaining commands to RunE 2026-02-19 14:04:00 +00:00
users.go cmd/headscale/cli: add confirmAction helper for force/prompt patterns 2026-02-19 14:04:00 +00:00
utils.go cmd/headscale/cli: deduplicate expiration parsing and api-key flag validation 2026-02-19 14:04:00 +00:00
version.go cmd/headscale/cli: convert remaining commands to RunE 2026-02-19 14:04:00 +00:00