Skip to content

Commit

Permalink
Merge pull request #1873 from rsteube/env-add-maven
Browse files Browse the repository at this point in the history
env: added maven
  • Loading branch information
rsteube authored Sep 25, 2023
2 parents d8fd314 + ad16739 commit fc9711f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pkg/actions/env/maven.go
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(),
},
}

}

0 comments on commit fc9711f

Please sign in to comment.