MCPcopy Index your code
hub / github.com/devspace-sh/devspace / Run

Method Run

cmd/upgrade.go:42–56  ·  view source on GitHub ↗

Run executes the command logic

()

Source from the content-addressed store, hash-verified

40
41// Run executes the command logic
42func (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}

Callers 1

NewUpgradeCmdFunction · 0.95

Calls 3

ExecuteHooksFunction · 0.92
UpgradeFunction · 0.92
ErrorfMethod · 0.45

Tested by

no test coverage detected