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