Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 23 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion graph/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ diesel_derives = { workspace = true }
chrono = "0.4.41"
envconfig = "0.11.0"
Inflector = "0.11.3"
isatty = "0.1.9"
atty = "0.2"
reqwest = { version = "0.12.15", features = ["json", "stream", "multipart"] }
ethabi = "17.2"
hex = "0.4.3"
Expand Down
2 changes: 1 addition & 1 deletion graph/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ pub mod prelude {
pub use ::anyhow;
pub use anyhow::{anyhow, Context as _, Error};
pub use async_trait::async_trait;
pub use atty;
pub use chrono;
pub use diesel;
pub use envconfig;
pub use ethabi;
pub use hex;
pub use isatty;
pub use lazy_static::lazy_static;
pub use prost;
pub use rand;
Expand Down
4 changes: 2 additions & 2 deletions graph/src/log/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ macro_rules! impl_slog_value {
};
}

use isatty;
use atty;
use slog::*;
use slog_async;
use slog_envlogger;
Expand All @@ -36,7 +36,7 @@ pub fn logger(show_debug: bool) -> Logger {
}

pub fn logger_with_levels(show_debug: bool, levels: Option<&str>) -> Logger {
let use_color = isatty::stdout_isatty();
let use_color = atty::is(atty::Stream::Stdout);
let decorator = slog_term::TermDecorator::new().build();
let drain = CustomFormat::new(decorator, use_color).fuse();
let drain = slog_envlogger::LogBuilder::new(drain)
Expand Down
4 changes: 2 additions & 2 deletions node/src/manager/color.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::{io, sync::Mutex};
use termcolor::{Color, ColorChoice, ColorSpec, StandardStream, WriteColor};

use graph::prelude::{isatty, lazy_static};
use graph::prelude::{atty, lazy_static};

use super::CmdResult;

Expand All @@ -21,7 +21,7 @@ impl Terminal {
"always" => ColorChoice::Always,
"ansi" => ColorChoice::AlwaysAnsi,
"auto" => {
if isatty::stdout_isatty() {
if atty::is(atty::Stream::Stdout) {
ColorChoice::Auto
} else {
ColorChoice::Never
Expand Down
Loading