qstdin 0.1.1

Interface for querying stdin
Documentation
  • Coverage
  • 28.57%
    2 out of 7 items documented1 out of 2 items with examples
  • Size
  • Source code size: 38.15 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 213.83 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • TanmayPatil105

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