MCPcopy Create free account
hub / github.com/cargo-lambda/cargo-lambda / is_stdout_tty

Function is_stdout_tty

crates/cargo-lambda-interactive/src/lib.rs:14–16  ·  view source on GitHub ↗

Check if STDOUT is a TTY

()

Source from the content-addressed store, hash-verified

12
13/// Check if STDOUT is a TTY
14pub fn is_stdout_tty() -> bool {
15 std::io::stdout().is_terminal()
16}
17
18pub fn choose_option<T: Display>(message: &str, options: Vec<T>) -> InquireResult<T> {
19 inquire::Select::new(message, options)

Callers 1

startMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected