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