diff options
author | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2021-05-26 17:11:10 +0200 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2021-05-26 17:11:10 +0200 |
commit | d419c6920100a4c5ff178ca98a5d731248c911ad (patch) | |
tree | 3c5efd06c3809dbf7c5f379d660e5d8baa64c0b3 /vespa-feed-client-cli/src | |
parent | 405914c1cb25f46187628a75777ddcc046f54311 (diff) |
Wire in System.in
Diffstat (limited to 'vespa-feed-client-cli/src')
-rw-r--r-- | vespa-feed-client-cli/src/main/java/ai/vespa/feed/client/CliClient.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vespa-feed-client-cli/src/main/java/ai/vespa/feed/client/CliClient.java b/vespa-feed-client-cli/src/main/java/ai/vespa/feed/client/CliClient.java index 060f406f38f..27ecada98c3 100644 --- a/vespa-feed-client-cli/src/main/java/ai/vespa/feed/client/CliClient.java +++ b/vespa-feed-client-cli/src/main/java/ai/vespa/feed/client/CliClient.java @@ -4,6 +4,7 @@ package ai.vespa.feed.client; import javax.net.ssl.HostnameVerifier; import javax.net.ssl.SSLSession; import java.io.IOException; +import java.io.InputStream; import java.io.PrintStream; import java.nio.file.Path; import java.util.Properties; @@ -17,16 +18,18 @@ public class CliClient { private final PrintStream systemOut; private final PrintStream systemError; + private final InputStream systemIn; private final Properties systemProperties; - private CliClient(PrintStream systemOut, PrintStream systemError, Properties systemProperties) { + private CliClient(PrintStream systemOut, PrintStream systemError, InputStream systemIn, Properties systemProperties) { this.systemOut = systemOut; this.systemError = systemError; + this.systemIn = systemIn; this.systemProperties = systemProperties; } public static void main(String[] args) { - CliClient client = new CliClient(System.out, System.err, System.getProperties()); + CliClient client = new CliClient(System.out, System.err, System.in, System.getProperties()); int exitCode = client.run(args); System.exit(exitCode); } |