Skip to content

Commit

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

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

func init() {
knownVariables["gradle"] = variables{
Condition: conditions.ConditionPath("gradle"),
Variables: map[string]string{
"GRADLE_HOME": "Gradle distribution location",
"GRADLE_OPTS": "JVM arguments to use when starting the Gradle client VM",
"GRADLE_USER_HOME": "Gradle User Home directory (",
},
VariableCompletion: map[string]carapace.Action{
"GRADLE_HOME": carapace.ActionDirectories(),
"GRADLE_OPTS": bridge.ActionCarapaceBin("java").Split(),
"GRADLE_USER_HOME": carapace.ActionDirectories(),
},
}

}

0 comments on commit b845fad

Please sign in to comment.