Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = models.Command{ Name: "update", ShortHelp: "Checks for available updates and updates the CLI if a new update is available", LongHelp: "`update` is a shortcut to update your CLI instantly. " + "If a newer version of the CLI is available, it will be downloaded and installed automatically. " + "This is used when you want to apply an update before the CLI automatically applies it on its own. " + "Here is a sample command\n\n" + "```\ncatalyze update\n```", CmdFunc: func(settings *models.Settings) func(cmd *cli.Cmd) { return func(cmd *cli.Cmd) { cmd.Action = func() { err := CmdUpdate(New(settings)) if err != nil { logrus.Fatal(err.Error()) } } } }, }
Cmd is the contract between the user and the CLI. This specifies the command name, arguments, and required/optional arguments and flags for the command.
Functions ¶
Types ¶
type SUpdate ¶
SUpdate is a concrete implementation of IUpdate
func (*SUpdate) UpdatePods ¶
func (u *SUpdate) UpdatePods()
UpdatePods retrieves the latest list of pods and refreshes the local cache. If an error occurs, the local cache is unchanged.
Click to show internal directories.
Click to hide internal directories.