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