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:
parent
4568b1f625
commit
542c7e7101
1 changed files with 1 additions and 5 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue