| Crates.io | qstdin |
| lib.rs | qstdin |
| version | 0.1.1 |
| created_at | 2024-05-07 18:11:49.798064+00 |
| updated_at | 2024-05-08 04:27:08.475029+00 |
| description | Interface for querying stdin |
| homepage | https://github.com/TanmayPatil105/qstdin |
| repository | |
| max_upload_size | |
| id | 1232527 |
| size | 38,613 |
a simple interface for querying stdin
This assumes that you have called atty::is(Stream::Stdio) before calling qstdin::is(Stdin::*)
$ cargo add qstdin
$ 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