feat: udpate mise exec logs

This commit is contained in:
engigu
2026-02-13 21:16:51 +08:00
parent ef0d256c58
commit 2d90d0921a
19 changed files with 180 additions and 63 deletions
+5
View File
@@ -12,12 +12,17 @@ type ElixirManager struct {
}
func NewElixirManager(language string) *ElixirManager {
verifyCmd := []string{"elixir", "-v"}
if strings.Contains(strings.ToLower(language), "erlang") {
verifyCmd = []string{"erl", "+V"}
}
return &ElixirManager{
BaseManager: BaseManager{
Language: language,
InstallCmd: []string{"mix", "archive.install", "hex", "--force"},
UninstallCmd: []string{"mix", "archive.uninstall"},
ListCmd: []string{"mix", "archive"},
VerifyCmd: verifyCmd,
Separator: " ",
},
}