Documentation
¶
Index ¶
- Constants
- type ExecEnv
- type MiseExecEnv
- func (e MiseExecEnv) InstallDir() string
- func (e MiseExecEnv) RunMise(args ...string) (string, error)
- func (e MiseExecEnv) RunMisePlugin(args ...string) (string, error)
- func (e MiseExecEnv) RunMiseWithTimeout(timeout time.Duration, args ...string) (string, error)
- func (e MiseExecEnv) RunMiseWithTimeoutAndEnvs(timeout time.Duration, additionalEnvs map[string]string, args ...string) (string, error)
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 interface {
// InstallDir is the directory where mise is installed. This is not necessarily the same as the data directory.
InstallDir() string
RunMise(args ...string) (string, error)
RunMiseWithTimeout(timeout time.Duration, args ...string) (string, error)
RunMiseWithTimeoutAndEnvs(timeout time.Duration, extraEnvs map[string]string, args ...string) (string, error)
RunMisePlugin(args ...string) (string, error)
}
ExecEnv contains everything needed to run mise commands in a specific environment that is installed and pre-configured.
type MiseExecEnv ¶ added in v2.35.2
func NewMiseExecEnv ¶ added in v2.35.2
func NewMiseExecEnv(installDir string, extraEnvs map[string]string) MiseExecEnv
func (MiseExecEnv) InstallDir ¶ added in v2.35.2
func (e MiseExecEnv) InstallDir() string
func (MiseExecEnv) RunMise ¶ added in v2.35.2
func (e MiseExecEnv) RunMise(args ...string) (string, error)
func (MiseExecEnv) RunMisePlugin ¶ added in v2.35.2
func (e MiseExecEnv) RunMisePlugin(args ...string) (string, error)
func (MiseExecEnv) RunMiseWithTimeout ¶ added in v2.35.2
RunMiseWithTimeout runs mise commands that involve untrusted operations (plugin execution, remote network calls) with a timeout to prevent hanging.
func (MiseExecEnv) RunMiseWithTimeoutAndEnvs ¶ added in v2.39.3
func (e MiseExecEnv) RunMiseWithTimeoutAndEnvs(timeout time.Duration, additionalEnvs map[string]string, args ...string) (string, error)
RunMiseWithTimeoutAndEnvs runs mise commands with optional timeout and additional environment variables.
Click to show internal directories.
Click to hide internal directories.