/* Copyright © 2024 raul */ package cmd import ( "github.com/spf13/cobra" ) // serveCmd represents the serve command var serveCmd = &cobra.Command{ Use: "server", Short: "Start HTTP server", Long: `Start HTTP server`, Run: func(cmd *cobra.Command, args []string) { server() }, } func init() { rootCmd.AddCommand(serveCmd) // Here you will define your flags and configuration settings. // Cobra supports Persistent Flags which will work for this command // and all subcommands, e.g.: serveCmd.PersistentFlags().String("port", "1302", "Port for server to listen on") // Cobra supports local flags which will only run when this command // is called directly, e.g.: // serveCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") }