(json: bool)
| 9 | |
| 10 | impl Thinking { |
| 11 | pub(super) fn start(json: bool) -> Self { |
| 12 | Self( |
| 13 | enabled( |
| 14 | json, |
| 15 | std::io::stdout().is_terminal(), |
| 16 | std::io::stderr().is_terminal(), |
| 17 | std::env::var("TERM").is_ok_and(|term| term == "dumb"), |
| 18 | ) |
| 19 | .then(|| { |
| 20 | crate::output::progress::create_spinner( |
| 21 | "Analyzing recorded syntax, semantic relationships and metrics...", |
| 22 | ) |
| 23 | }), |
| 24 | ) |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | impl Drop for Thinking { |
nothing calls this directly
no test coverage detected