You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by gn...@apache.org on 2023/02/14 16:07:13 UTC

[maven-mvnd] branch master updated: Make sure to print the completion script to the standard output stream (fix #785) (#791)

This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-mvnd.git


The following commit(s) were added to refs/heads/master by this push:
     new 45496afe Make sure to print the completion script to the standard output stream (fix #785) (#791)
45496afe is described below

commit 45496afeaec094962de34f13798fef6bd6d8e815
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Tue Feb 14 17:07:07 2023 +0100

    Make sure to print the completion script to the standard output stream (fix #785) (#791)
---
 client/src/main/java-mvnd/org/mvndaemon/mvnd/client/DefaultClient.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/src/main/java-mvnd/org/mvndaemon/mvnd/client/DefaultClient.java b/client/src/main/java-mvnd/org/mvndaemon/mvnd/client/DefaultClient.java
index d601de4b..8501ed63 100644
--- a/client/src/main/java-mvnd/org/mvndaemon/mvnd/client/DefaultClient.java
+++ b/client/src/main/java-mvnd/org/mvndaemon/mvnd/client/DefaultClient.java
@@ -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);
         }