mise

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 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

View Source
var Version string

Functions

func GenerateMiseToml

func GenerateMiseToml(packages map[string]string, settings map[string]any) (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]string `toml:"tools"`
	Settings map[string]any    `toml:"settings,omitempty"`
}

MiseConfig represents the overall mise configuration

Jump to

Keyboard shortcuts

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