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