build(ariadne): vendor clap
This commit was merged in pull request #30.
This commit is contained in:
1 parent
e6af135702
commit
8855b6d379
681 files changed
+400416
No files matched your search
@@ -0,0 +1,22 @@
|
||||
//! Report a terminal's capabilities
|
||||
|
||||
fn main() {
|
||||
println!("stdout:");
|
||||
println!(
|
||||
" choice: {:?}",
|
||||
anstream::AutoStream::choice(&std::io::stdout())
|
||||
);
|
||||
println!(
|
||||
" choice: {:?}",
|
||||
anstream::AutoStream::auto(std::io::stdout()).current_choice()
|
||||
);
|
||||
println!("stderr:");
|
||||
println!(
|
||||
" choice: {:?}",
|
||||
anstream::AutoStream::choice(&std::io::stderr())
|
||||
);
|
||||
println!(
|
||||
" choice: {:?}",
|
||||
anstream::AutoStream::auto(std::io::stderr()).current_choice()
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user