https://github.com/tanmaypatil105/qstdin
💲: a simple interface for querying stdin
https://github.com/tanmaypatil105/qstdin
rust rust-library stdin
Last synced: 7 months ago
JSON representation
💲: a simple interface for querying stdin
- Host: GitHub
- URL: https://github.com/tanmaypatil105/qstdin
- Owner: TanmayPatil105
- License: gpl-3.0
- Created: 2024-05-07T17:59:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-11T16:15:37.000Z (over 1 year ago)
- Last Synced: 2025-02-12T04:12:04.581Z (8 months ago)
- Topics: rust, rust-library, stdin
- Language: Rust
- Homepage: https://crates.io/crates/qstdin
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## qstdin
a simple interface for querying stdin
This assumes that you have called `atty::is(Stream::Stdio)` before calling `qstdin::is(Stdin::*)`
### Install
```console
$ cargo add qstdin
```### Testing
```console
$ cargo run --example qstdin
input? true
file? false
directory? false
``````console
$ cargo run --example qstdin < Cargo.toml
input? false
file? true
directory? false
``````console
$ cargo run --example qstdin < src
input? false
file? false
directory? true
```