-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1873 from rsteube/env-add-maven
env: added maven
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
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["maven"] = variables{ | ||
Condition: conditions.ConditionPath("mvn"), | ||
Variables: map[string]string{ | ||
"MAVEN_OPTS": "parameters used to start up the JVM running Maven", | ||
"MAVEN_ARGS": "arguments passed to Maven before CLI arguments", | ||
}, | ||
VariableCompletion: map[string]carapace.Action{ | ||
"MAVEN_OPTS": bridge.ActionCarapaceBin("java").Split(), | ||
"MAVEN_ARGS": bridge.ActionCarapaceBin("mvn").Split(), | ||
}, | ||
} | ||
|
||
} |