Documentation
¶
Index ¶
- func Dirs(miseVersion string) (installDir, dataDir string)
- func FallbackDownloadURL(version, platformName string) string
- func GetMiseChecksums() map[string]string
- func GetMiseVersion() string
- type MiseToolProvider
- func (m *MiseToolProvider) ActivateEnv(result provider.ToolInstallResult) (provider.EnvironmentActivation, error)
- func (m *MiseToolProvider) Bootstrap() error
- func (m *MiseToolProvider) ID() string
- func (m *MiseToolProvider) InstallPlugin(tool provider.ToolRequest) error
- func (m *MiseToolProvider) InstallTool(tool provider.ToolRequest) (provider.ToolInstallResult, error)
- type PluginSource
- type RegistryChecker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FallbackDownloadURL ¶ added in v2.34.2
func GetMiseChecksums ¶ added in v2.34.6
func GetMiseVersion ¶ added in v2.34.6
func GetMiseVersion() string
Types ¶
type MiseToolProvider ¶
func NewToolProvider ¶
func NewToolProvider(installDir string, dataDir string, useFastInstall bool) (*MiseToolProvider, error)
func (*MiseToolProvider) ActivateEnv ¶
func (m *MiseToolProvider) ActivateEnv(result provider.ToolInstallResult) (provider.EnvironmentActivation, error)
func (*MiseToolProvider) Bootstrap ¶
func (m *MiseToolProvider) Bootstrap() error
func (*MiseToolProvider) ID ¶
func (m *MiseToolProvider) ID() string
func (*MiseToolProvider) InstallPlugin ¶ added in v2.34.3
func (m *MiseToolProvider) InstallPlugin(tool provider.ToolRequest) error
InstallPlugin installs a plugin for the specified tool, if needed.
It resolves the plugin source from the tool request or predefined map, checks if the plugin is already installed, and if not, installs it using mise.
func (*MiseToolProvider) InstallTool ¶
func (m *MiseToolProvider) InstallTool(tool provider.ToolRequest) (provider.ToolInstallResult, error)
type PluginSource ¶ added in v2.34.3
type RegistryChecker ¶ added in v2.34.3
type RegistryChecker interface {
// contains filtered or unexported methods
}
RegistryChecker interface required for testing.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.