Documentation
¶
Index ¶
- func CheckUpdate(f cmdutils.Factory, silentSuccess bool) error
- func CheckUpdateExplicit(f cmdutils.Factory) error
- func NewCheckUpdateCmd(f cmdutils.Factory) *cobra.Command
- func PrintUpdateError(streams *iostreams.IOStreams, err error, cmd *cobra.Command, debug bool)
- func ShouldSkipUpdate(previousCommand string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckUpdateExplicit ¶ added in v1.78.0
CheckUpdateExplicit performs an update check when explicitly invoked by the user. Unlike automatic checks, this bypasses the 24-hour throttle.
func PrintUpdateError ¶ added in v1.73.0
PrintUpdateError prints update check errors with helpful formatting and context. This is specifically for errors that occur during background update checks, not main command execution errors.
func ShouldSkipUpdate ¶
Don't CheckUpdate if previous command is CheckUpdate or it's Completion, so it doesn't take a noticably long time to start new shells and we don't encourage users setting `check_update` to false in the config. Also skip for git-credential to avoid interfering with Git operations.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.