Make sure to print the completion script to the standard output stream (fix #785) (#791)

This commit is contained in:
Guillaume Nodet
2023-02-14 17:07:07 +01:00
committed by GitHub
parent d6b8cb1173
commit 45496afeae

View File

@@ -220,7 +220,7 @@ public class DefaultClient implements Client {
final List<String> args = new ArrayList<>(argv);
final String completionShell = Environment.COMPLETION.removeCommandLineOption(args);
if (completionShell != null) {
output.accept(Message.log(Completion.getCompletion(completionShell, parameters)));
output.accept(Message.out(Completion.getCompletion(completionShell, parameters)));
return DefaultResult.success(argv);
}