Help us shape the future of Go! Take the 2026 Go Developer Survey

versioncheck

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Checker is a version checker for the HCP CLI.

func New

func New(io iostreams.IOStreams, stateFilePath string) (*Checker, error)

New returns a new version checker for the HCP CLI. It will used the passed iostreams to display any new version information and will store the stateFilePath.

func (*Checker) Check

func (c *Checker) Check(ctx context.Context) error

Check checks for a new version of the HCP CLI.

func (*Checker) Display

func (c *Checker) Display()

Display displays the new version information to the user.

Jump to

Keyboard shortcuts

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