Skip to content

Commit

Permalink
env: added java
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Sep 25, 2023
1 parent 51ee370 commit bb40b10
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pkg/actions/env/java.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package env

import (
"github.com/rsteube/carapace"
"github.com/rsteube/carapace-bin/pkg/conditions"
)

func init() {
knownVariables["java"] = variables{
Condition: conditions.ConditionPath("java"),
Variables: map[string]string{
"JAVA_HOME": "JDK installation directory",
},
VariableCompletion: map[string]carapace.Action{
"JAVA_HOME": carapace.ActionDirectories(),
},
}

}

0 comments on commit bb40b10

Please sign in to comment.