mise

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirHelper

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

func NewDirHelper

func NewDirHelper(path string) *DirHelper

func (*DirHelper) InstallAll

func (helper *DirHelper) InstallAll() error

func (*DirHelper) ListInstalled

func (helper *DirHelper) ListInstalled() (*ListAllResponse, error)

func (*DirHelper) ListMissing added in v0.6.0

func (helper *DirHelper) ListMissing() (*ListMissingResponse, error)

type Helper

type Helper struct {
	DefaultConfigFilename         string
	DefaultToolVersionsFilename   string
	LegacyVersionFile             bool
	LegacyVersionFileDisableTools []string
}

func NewHelper

func NewHelper() (*Helper, error)

func (*Helper) HasVersionFiles

func (helper *Helper) HasVersionFiles(path string) (bool, error)

func (*Helper) ListAvailable

func (helper *Helper) ListAvailable(name string) ([]*ToolVersion, error)

type ListAllResponse

type ListAllResponse map[string][]*Listing

type ListMissingResponse added in v0.6.0

type ListMissingResponse map[string][]*Listing

type Listing

type Listing struct {
	Version          string  `json:"version"`
	RequestedVersion string  `json:"requested_version,omitempty"`
	InstallPath      string  `json:"install_path,omitempty"`
	Source           *Source `json:"source,omitempty"`
	Installed        bool    `json:"installed"`
	Active           bool    `json:"active"`
}

type Source

type Source struct {
	Type string `json:"type"`
	Path string `json:"path"`
}

type ToolVersion

type ToolVersion struct {
	Version       string
	VersionPrefix string
	VersionNumber string
	SemVer        *semver.Version
}

func NewToolVersion

func NewToolVersion(version string) *ToolVersion

func (*ToolVersion) CheckConstraints

func (v *ToolVersion) CheckConstraints(c *semver.Constraints) bool

func (*ToolVersion) Prerelease

func (v *ToolVersion) Prerelease() string

func (*ToolVersion) Valid

func (v *ToolVersion) Valid() bool

Jump to

Keyboard shortcuts

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