From 6c903d4a2f505d3675792c0e1221c13f6b4b264e Mon Sep 17 00:00:00 2001 From: Juan Font Date: Sat, 31 Jul 2021 23:14:24 +0200 Subject: [PATCH] Fixed missing nodes cmd --- cmd/headscale/cli/nodes.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/headscale/cli/nodes.go b/cmd/headscale/cli/nodes.go index 4be706b8..75000434 100644 --- a/cmd/headscale/cli/nodes.go +++ b/cmd/headscale/cli/nodes.go @@ -11,7 +11,8 @@ import ( "github.com/spf13/cobra" ) -func init () { +func init() { + rootCmd.AddCommand(nodeCmd) nodeCmd.PersistentFlags().StringP("namespace", "n", "", "Namespace") err := nodeCmd.MarkPersistentFlagRequired("namespace") if err != nil {