qstdin

Crates.ioqstdin
lib.rsqstdin
version0.1.1
sourcesrc
created_at2024-05-07 18:11:49.798064
updated_at2024-05-08 04:27:08.475029
descriptionInterface for querying stdin
homepagehttps://github.com/TanmayPatil105/qstdin
repository
max_upload_size
id1232527
size38,613
Tanmay (TanmayPatil105)

documentation

README

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
Commit count: 0

cargo fmt