update

package
v1.73.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckUpdate

func CheckUpdate(f cmdutils.Factory, silentSuccess bool) error

func NewCheckUpdateCmd

func NewCheckUpdateCmd(f cmdutils.Factory) *cobra.Command

func PrintUpdateError added in v1.73.1

func PrintUpdateError(streams *iostreams.IOStreams, err error, cmd *cobra.Command, debug bool)

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

func ShouldSkipUpdate(previousCommand string) bool

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL