refactor: 将 lazy_static 和 atty 替换为标准库实现以减少依赖

This commit is contained in:
2026-08-18 13:45:13 +08:00
parent a0ea03fd90
commit e6b8b344aa
4 changed files with 36 additions and 35 deletions

View File

@@ -62,7 +62,7 @@ pub fn password_input(prompt: &str) -> Result<String> {
/// Check if running in a terminal
pub fn is_terminal() -> bool {
atty::is(atty::Stream::Stdout)
std::io::IsTerminal::is_terminal(&io::stdout())
}
/// Format duration in human-readable format