execenv

package
v2.35.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InstallTimeout = 5 * time.Minute
	DefaultTimeout = 1 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecEnv

type ExecEnv struct {
	// InstallDir is the directory where mise is installed. This is not necessarily the same as the data directory.
	InstallDir string

	// Additional env vars that configure mise and are required for its operation.
	ExtraEnvs map[string]string
}

ExecEnv contains everything needed to run mise commands in a specific environment that is installed and pre-configured.

func (*ExecEnv) RunMise

func (e *ExecEnv) RunMise(args ...string) (string, error)

func (*ExecEnv) RunMisePlugin added in v2.34.3

func (e *ExecEnv) RunMisePlugin(args ...string) (string, error)

func (*ExecEnv) RunMiseWithTimeout added in v2.34.2

func (e *ExecEnv) RunMiseWithTimeout(timeout time.Duration, args ...string) (string, error)

RunMiseWithTimeout runs mise commands that involve untrusted operations (plugin execution, remote network calls) with a timeout to prevent hanging

Jump to

Keyboard shortcuts

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