Skip to content

Commit

Permalink
Merge pull request #1875 from rsteube/env-add-java
Browse files Browse the repository at this point in the history
env: added java
  • Loading branch information
rsteube authored Sep 25, 2023
2 parents 51ee370 + bb40b10 commit 79709c1
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 79709c1

Please sign in to comment.