github.com/vishnupahwa/lakctl@v0.0.2-alpha/cmd/lakctl/main.go (about) 1 package main 2 3 import ( 4 "fmt" 5 "github.com/spf13/cobra" 6 "github.com/vishnupahwa/lakctl/cmd/commands" 7 "os" 8 ) 9 10 func main() { 11 // rootCmd represents the base command when called without any subcommands 12 var rootCmd = &cobra.Command{ 13 Use: "lakctl", 14 Short: "Control applications", 15 Long: `Testing utility to control applications via HTTP.`, 16 Version: "alpha", 17 } 18 19 commands.AddCommands(rootCmd) 20 if err := rootCmd.Execute(); err != nil { 21 fmt.Println(err) 22 os.Exit(1) 23 } 24 }