gosocketio/cli/root.go

25 lines
357 B
Go
Raw Normal View History

2023-11-25 22:27:57 +08:00
package cli
import (
"fmt"
"os"
"github.com/spf13/cobra"
)
var rootCmd = &cobra.Command{
Use: "gosocketio",
Short: "A golang socket.io server",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("gossocketio called")
},
}
// run app cmd
func Execute() {
if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
}
}