mise

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InstallDir                = "/tmp/railpack/mise"
	TestInstallDir            = "/tmp/railpack/mise-test"
	IdiomaticVersionFileTools = "python,node,ruby,elixir,go,java,yarn"
)
View Source
const (
	ErrMiseGetLatestVersion = "failed to resolve version %s of %s"
)

Variables

This section is empty.

Functions

func GenerateMiseToml

func GenerateMiseToml(packages map[string]string) (string, error)

used by the container mise logic, but uses the package structs defined in this file

Types

type Mise

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

func New

func New(cacheDir string) (*Mise, error)

func (*Mise) GetAllVersions added in v0.0.31

func (m *Mise) GetAllVersions(pkg, version string) ([]string, error)

func (*Mise) GetCurrentList added in v0.9.0

func (m *Mise) GetCurrentList(appDir string) (string, error)

returns the JSON output of 'mise list --current --json' for the app

func (*Mise) GetLatestVersion

func (m *Mise) GetLatestVersion(pkg, version string) (string, error)

gets the latest version of a package matching the version constraint

type MiseConfig

type MiseConfig struct {
	Tools map[string]MisePackage `toml:"tools"`
}

MiseConfig represents the overall mise configuration

type MisePackage

type MisePackage struct {
	Version string `toml:"version"`
}

MisePackage represents a single mise package configuration

Jump to

Keyboard shortcuts

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