Documentation ¶
Index ¶
Constants ¶
View Source
const ( Text = iota Json )
type of output format for commands
View Source
const ( Mercurial = iota Source Binary )
possible installation sources
Variables ¶
View Source
var ErrNotInstalled = errors.New("Go version not installed")
error used when Go version used for mkenv is not installed yet
Functions ¶
func IsNotInstalledError ¶
determine if the given error is of ErrNotInstalled type
Types ¶
type BriefJSON ¶
type BriefJSON struct { Installed []string `json:"installed"` Available []string `json:"available"` }
json brief output structure
type EnvironmentsJSON ¶
type EnvironmentsList ¶
type EnvironmentsList struct {
DisplayAs int
}
EnvironmentsList command
func NewEnvironmentsList ¶
func NewEnvironmentsList(options ...func(*EnvironmentsList)) *EnvironmentsList
Create a new lsenv adn returns back it's address
func (*EnvironmentsList) Run ¶
func (e *EnvironmentsList) Run() (string, error)
implements the Runner interface returning back a list of available environments in text or json format depending on the given options
type Install ¶
instal command
func NewInstall ¶
Create a new install command and return back it's address
Click to show internal directories.
Click to hide internal directories.