cmd/headscale/cli: remove legacy namespace and machine aliases

The --namespace flag on nodes list/register and debug create-node was
never wired to the --user flag, so its value was silently ignored.
Remove it along with the deprecateNamespaceMessage constant.

Also remove the namespace/ns command aliases on users and
machine/machines aliases on nodes, which have been deprecated since
the naming changes in 0.23.0.
This commit is contained in:
Kristoffer Dalby
2026-02-18 15:05:45 +00:00
parent e816397d54
commit d72a06c6c6
5 changed files with 4 additions and 24 deletions

View File

@@ -19,12 +19,6 @@ func init() {
createNodeCmd.Flags().StringP("name", "", "", "Name")
createNodeCmd.Flags().StringP("user", "u", "", "User")
createNodeCmd.Flags().StringP("namespace", "n", "", "User")
createNodeNamespaceFlag := createNodeCmd.Flags().Lookup("namespace")
createNodeNamespaceFlag.Deprecated = deprecateNamespaceMessage
createNodeNamespaceFlag.Hidden = true
createNodeCmd.Flags().StringP("key", "k", "", "Key")
mustMarkRequired(createNodeCmd, "name", "user", "key")