selfupdate

package
Version: v1.59.3 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2022 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Opt = Options{}

Opt is options set via command line

Functions

func GetVersion

func GetVersion(ctx context.Context, beta bool, version string) (newVersion, siteURL string, err error)

GetVersion can get the latest release number from the download site or massage a stable release number - prepend semantic "v" prefix or find the latest micro release for a given major.minor release. Note: this will not be applied to beta releases.

func InstallUpdate

func InstallUpdate(ctx context.Context, opt *Options) error

InstallUpdate performs rclone self-update

Types

type Options

type Options struct {
	Check   bool
	Output  string // output path
	Beta    bool   // mutually exclusive with Stable (false means "stable")
	Stable  bool   // mutually exclusive with Beta
	Version string
	Package string // package format: zip, deb, rpm (empty string means "zip")
}

Options contains options for the self-update command

Jump to

Keyboard shortcuts

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