version

package
v0.0.0-...-873fb03 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MsgUpgrade error message to inform user to upgrade rit version
	MsgRitUpgrade = "\nWarning: Rit has a new stable version.\nPlease run: rit upgrade"

	StableVersionURL = "https://commons-repo.ritchiecli.io/stable.txt"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(
	stableVersionURL string,
	file stream.FileWriteReadExister,
) Manager

func (Manager) StableVersion

func (m Manager) StableVersion() (string, error)

func (Manager) UpdateCache

func (m Manager) UpdateCache() error

func (Manager) VerifyNewVersion

func (m Manager) VerifyNewVersion(current, installed string) string

type Resolver

type Resolver interface {
	StableVersion() (string, error)
	UpdateCache() error
	VerifyNewVersion(current, installed string) string
}

Jump to

Keyboard shortcuts

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