mirror of
https://github.com/wahyd4/jabba.git
synced 2026-08-09 04:46:17 +10:00
16 lines
252 B
Go
16 lines
252 B
Go
package command
|
|
|
|
import (
|
|
"github.com/shyiko/jabba/cfg"
|
|
"os"
|
|
"path/filepath"
|
|
)
|
|
|
|
func Uninstall(selector string) error {
|
|
ver, err := LsBestMatch(selector)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return os.RemoveAll(filepath.Join(cfg.Dir(), "jdk", ver))
|
|
}
|