Skip to content

Commit 3914002

Browse files
committed
Updates
1 parent 196896d commit 3914002

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

mvnsh/pom.xml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<groupId>eu.maveniverse.maven.toolbox</groupId>
1616
<artifactId>toolbox</artifactId>
17-
<version>0.6.4-SNAPSHOT</version>
17+
<version>0.6.5-SNAPSHOT</version>
1818
</parent>
1919

2020
<artifactId>mvnsh</artifactId>
@@ -56,4 +56,16 @@
5656
<artifactId>standalone-static-uber</artifactId>
5757
</dependency>
5858
</dependencies>
59+
60+
<repositories>
61+
<repository>
62+
<releases>
63+
<enabled>false</enabled>
64+
</releases>
65+
<id>apache.snapshots</id>
66+
<name>Apache Snapshot Repository</name>
67+
<url>https://repository.apache.org/snapshots</url>
68+
</repository>
69+
</repositories>
70+
5971
</project>

mvnsh/src/main/java/eu/maveniverse/maven/toolbox/plugin/mvnsh/ToolboxShellCommandRegistryFactory.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ public class ToolboxShellCommandRegistryFactory implements ShellCommandRegistryF
2727
@Override
2828
public CommandRegistry createShellCommandRegistry(LookupContext lookupContext) {
2929
Runtimes.INSTANCE.registerRuntime(new StandaloneStaticRuntime());
30-
CommandLine cmd = new CommandLine(new CLI());
31-
PicocliCommands picocliCommands = new PicocliCommands(cmd);
30+
31+
PicocliCommands.PicocliCommandsFactory factory = new PicocliCommands.PicocliCommandsFactory();
32+
factory.setTerminal(lookupContext.terminal);
33+
34+
PicocliCommands picocliCommands = new PicocliCommands(new CommandLine(new CLI(), factory));
3235
picocliCommands.name("Maveniverse Toolbox");
3336
return picocliCommands;
3437
}

0 commit comments

Comments
 (0)