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 22fccae125 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-20 11:42:07 +01:00
..
cli cmd/headscale/cli: deduplicate expiration parsing and api-key flag validation 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