Run executes the command logic
()
| 40 | |
| 41 | // Run executes the command logic |
| 42 | func (cmd *UpgradeCmd) Run() error { |
| 43 | // Execute plugin hook |
| 44 | err := hook.ExecuteHooks(nil, nil, "upgrade") |
| 45 | if err != nil { |
| 46 | return err |
| 47 | } |
| 48 | |
| 49 | // Run the upgrade command |
| 50 | err = upgrade.Upgrade(cmd.Version) |
| 51 | if err != nil { |
| 52 | return errors.Errorf("Couldn't upgrade: %v", err) |
| 53 | } |
| 54 | |
| 55 | return nil |
| 56 | } |
no test coverage detected