Skip to content

Commit

Permalink
Updated output to be clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
codesidian authored Sep 13, 2022
1 parent 3d8918b commit 9ab082d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ func commands() []cli.Command {
{
Name: "list",
ShortName: "ls",
Usage: "List the JDK installations.",
Usage: "List current JDK installations.",
Action: func(c *cli.Context) error {
fmt.Println("Installed jdk (mark up * is in used):")
fmt.Println("Installed jdk (* marks in use):")
v := jdk.GetInstalled(config.store)
for i, version := range v {
str := ""
Expand All @@ -121,7 +121,7 @@ func commands() []cli.Command {
{
Name: "install",
ShortName: "i",
Usage: "Install remote available jdk",
Usage: "Install available remote jdk",
Action: func(c *cli.Context) error {
v := c.Args().Get(0)
if v == "" {
Expand Down Expand Up @@ -186,7 +186,7 @@ func commands() []cli.Command {
return errors.New("you should input a version, Type \"jvms list\" to see what is installed")
}
if !jdk.IsVersionInstalled(config.store, v) {
fmt.Printf("jdk %s is uninstall. ", v)
fmt.Printf("jdk %s is not installed. ", v)
return nil
}
// Create or update the symlink
Expand Down

0 comments on commit 9ab082d

Please sign in to comment.