Skip to content

Commit

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

Please sign in to comment.