Make stdin always available

Because we do not implement the store piping and pipe magic, the stdin
stream should always be available.
This commit is contained in:
Matthias Beyer 2018-04-18 17:42:04 +02:00
parent 4568b1f625
commit 542c7e7101

View file

@ -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.