Refactor server cmd

This commit is contained in:
ohdearaugustin 2021-07-25 15:09:33 +02:00
parent d87a4c87cc
commit 4915902e04

View file

@ -6,7 +6,11 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )
var ServeCmd = &cobra.Command{ func init() {
rootCmd.AddCommand(serveCmd)
}
var serveCmd = &cobra.Command{
Use: "serve", Use: "serve",
Short: "Launches the headscale server", Short: "Launches the headscale server",
Args: func(cmd *cobra.Command, args []string) error { Args: func(cmd *cobra.Command, args []string) error {