summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-04-18 17:42:04 +0200
committerMatthias Beyer <mail@beyermatthias.de>2018-04-18 17:42:04 +0200
commit542c7e7101068a3d424ee73b8284e722b2ecaa07 (patch)
tree5cb239ce5892e8ccba1a906cd53428367bd59dc4
parent4568b1f625977c4af109c099dfd98ff2f371ee3c (diff)
Make stdin always available
Because we do not implement the store piping and pipe magic, the stdin stream should always be available.
-rw-r--r--lib/core/libimagrt/src/runtime.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/core/libimagrt/src/runtime.rs b/lib/core/libimagrt/src/runtime.rs
index 40ffac22..1c24e5af 100644
--- a/lib/core/libimagrt/src/runtime.rs
+++ b/lib/core/libimagrt/src/runtime.rs
@@ -457,11 +457,7 @@ impl<'a> Runtime<'a> {
}
pub fn stdin(&self) -> Option<Stdin> {
- if self.stdin_is_tty {
- Some(::std::io::stdin())
- } else {
- None
- }
+ Some(::std::io::stdin())
}
/// Helper for handling subcommands which are not available.