File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed
src/main/java/eu/maveniverse/maven/toolbox/plugin/mvnsh Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 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 >
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 >
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments