mise

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InstallDir     = "/tmp/railpack/mise"
	TestInstallDir = "/tmp/railpack/mise-test"
)

Variables

This section is empty.

Functions

func GenerateMiseToml

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

Types

type Mise

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

func New

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

func (*Mise) GetLatestVersion

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

GetLatestVersion 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