mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-26 15:38:34 +00:00
Use client terminal width to format help
This commit is contained in:
@@ -57,6 +57,11 @@ public class TestClientOutput implements ClientOutput {
|
||||
accept(Message.display("Test terminal"));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getTerminalWidth() {
|
||||
return 74;
|
||||
}
|
||||
|
||||
public List<Message> getMessages() {
|
||||
return messages;
|
||||
}
|
||||
|
@@ -70,6 +70,7 @@ public class NativeTestClient implements Client {
|
||||
final String threads = parameters.threads();
|
||||
Environment.MVND_THREADS.appendAsCommandLineOption(cmd::add, threads);
|
||||
}
|
||||
Environment.MVND_TERMINAL_WIDTH.appendAsCommandLineOption(cmd::add, Integer.toString(output.getTerminalWidth()));
|
||||
|
||||
final ProcessBuilder builder = new ProcessBuilder(cmd.toArray(new String[0]))
|
||||
.directory(parameters.userDir().toFile()) //
|
||||
|
Reference in New Issue
Block a user