update

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckUpdate

func CheckUpdate(s *iostreams.IOStreams, version string, silentErr bool) error

func NewCheckUpdateCmd

func NewCheckUpdateCmd(s *iostreams.IOStreams, version string) *cobra.Command

Types

type ReleaseInfo

type ReleaseInfo struct {
	Version     string    `json:"tag_name"`
	PreRelease  bool      `json:"prerelease"`
	URL         string    `json:"html_url"`
	PublishedAt time.Time `json:"published_at"`
}

func GetUpdateInfo

func GetUpdateInfo() (ReleaseInfo, error)

GetUpdateInfo checks for latest glab release and returns the ReleaseInfo

Jump to

Keyboard shortcuts

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