Esempio n. 1
0
func upgradeCmdRun(c *cobra.Command, args []string) {
	err := upgrade.Upgrade(version)
	if err != nil {
		log.Fatalf("error: %s", err)
	}
}
Esempio n. 2
0
// Run command.
func run(c *cobra.Command, args []string) error {
	return upgrade.Upgrade(version.Version)
}
Esempio n. 3
0
// Run command.
func run(c *cobra.Command, args []string) error {
	stats.Track("Upgrade", nil)
	return upgrade.Upgrade(version.Version)
}