2个版本
使用旧的Rust 2015
| 0.1.1 | 2024年5月8日 |
|---|---|
| 0.1.0 | 2024年5月7日 |
26 在 #stdio
27 每月下载量
14KB
qstdin
一个简单的查询stdin的接口
这假设你在调用 atty::is(Stream::Stdio) 之前已经调用了 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
lib.rs:
qstdin
qstdin 是一个简单的查询stdin的接口