refactor: 将 lazy_static 和 atty 替换为标准库实现以减少依赖
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user