mirror of
https://github.com/juanfont/headscale
synced 2026-08-28 04:23:06 -04:00
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. |
||
|---|---|---|
| .. | ||
| headscale | ||
| hi | ||
| mapresponses | ||