Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdUpgrade = &cobra.Command{ Use: "upgrade", Short: "Upgrade the goal command.", Long: "Upgrade the goal command.", Example: "goal upgrade", Run: func(_ *cobra.Command, _ []string) { fmt.Printf("go install %s\n", config.GoalCmd) cmd := exec.Command("go", "install", config.GoalCmd) cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr if err := cmd.Run(); err != nil { log.Fatalf("go install %s error\n", err) } fmt.Print("\n🎉 Goal upgrade successfully!\n\n") }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.