version

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Display

func Display()

Display - Pull the current version info and display in the console

func DownloadAndInstall

func DownloadAndInstall(version string) (string, error)

DownloadAndInstall - Download and install a selected Ironstar CLI version

func GetInstallPath

func GetInstallPath(version string) string

GetInstallPath - Check if Ironstar CLI version is installed or not

func GetLatest

func GetLatest() (*github.ReleaseBody, error)

GetLatest - Hit the GH API to retrieve the latest Ironstar CLI version

func GetReleaseTagFromVersion

func GetReleaseTagFromVersion(version string) (string, error)

GetReleaseTagFromVersion returns a githab-ready release tag from a Ironstar CLI version string

func Select

func Select(selection string, flg flags.Accumulator) error

Select - Change the users' Ironstar CLI version to their selection

func Upgrade

func Upgrade(flg flags.Accumulator) error

Upgrade - Check if update available and auto-upgrade the user

Types

type Info

type Info struct {
	Version   string
	BuildDate string
	GoVersion string
	Compiler  string
	Platform  string
}

Info - Data model for version information

func Get

func Get() Info

Get returns the overall codebase version. It's for detecting what code a binary was built from.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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