qstdin
a simple interface for querying stdin
This assumes that you have called atty::is(Stream::Stdio)
before calling qstdin::is(Stdin::*)
Install
$ cargo add qstdin
Testing
$ cargo run --example qstdin
input? true
file? false
directory? false
$ cargo run --example qstdin < Cargo.toml
input? false
file? true
directory? false
$ cargo run --example qstdin < src
input? false
file? false
directory? true