upgrade

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareVersions added in v0.2.0

func CompareVersions(c, l string) (bool, error)

CompareVersions compares the current and the latest versions

func Download

func Download(p *prompt.Prompt, filename, version string) error

Download download the zip file from github and write it into a file

func GetExecutableDir added in v0.5.0

func GetExecutableDir() (string, error)

GetExecutableDir returns the directory from which the binary is running

func GetLatestVersion

func GetLatestVersion() (string, error)

GetLatestVersion fetches the latest application's version from the github repository

func GetPlatformArchiveName

func GetPlatformArchiveName() (string, error)

GetPlatformArchiveName retrieves the zip filename for the current platform

func ReplaceBinary

func ReplaceBinary(binDir string) error

ReplaceBinary replaces the existing binary file

func Unpack added in v0.2.0

func Unpack(file string) error

Unpack unzips the file

Types

This section is empty.

Jump to

Keyboard shortcuts

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