lib

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddVersion added in v0.1.12

func AddVersion(version string) error

AddVersion - Adds a new version

func CheckVersion added in v0.1.11

func CheckVersion(version string) (string, error)

CheckVersion = checks if version passed is valid

func RemoveVersion

func RemoveVersion(version string) error

RemoveVersion - Removes a version

Types

type Version

type Version struct {
	Name   string
	Number string
	Active bool
	Exists bool
}

Version = version struct type

func LoadVersion

func LoadVersion(version string) (Version, error)

LoadVersion - loads requested version

type Versions

type Versions []Version

Versions - slice of versions

func ListVersions

func ListVersions() (Versions, error)

ListVersions - lists all the current versions

func (*Versions) Shake added in v0.1.12

func (vs *Versions) Shake() error

Shake - Removes all versions except the inactive one

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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