From 4915902e04086fed0f0993bc2ae79cff88c1b9a6 Mon Sep 17 00:00:00 2001 From: ohdearaugustin Date: Sun, 25 Jul 2021 15:09:33 +0200 Subject: [PATCH] Refactor server cmd --- cmd/headscale/cli/server.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/headscale/cli/server.go b/cmd/headscale/cli/server.go index f4423c71..1f8db6a2 100644 --- a/cmd/headscale/cli/server.go +++ b/cmd/headscale/cli/server.go @@ -6,7 +6,11 @@ import ( "github.com/spf13/cobra" ) -var ServeCmd = &cobra.Command{ +func init() { + rootCmd.AddCommand(serveCmd) +} + +var serveCmd = &cobra.Command{ Use: "serve", Short: "Launches the headscale server", Args: func(cmd *cobra.Command, args []string) error {