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

Method is_ansi

crates/cargo-lambda-cli/src/main.rs:74–80  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

72
73impl Color {
74 fn is_ansi(&self) -> bool {
75 match self {
76 Color::Auto => std::io::stdout().is_terminal(),
77 Color::Always => true,
78 Color::Never => false,
79 }
80 }
81
82 fn write_env_var(&self) {
83 unsafe {

Callers 2

run_subcommandFunction · 0.80
error_hookFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected