From 796ded6a6b2777a22082f48f221e3c2185081795 Mon Sep 17 00:00:00 2001 From: "Andrew Phillips (aider)" Date: Sat, 10 May 2025 12:25:26 -0300 Subject: [PATCH] fix: correct imports and add clap::error::ErrorKind --- src/modes/info.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modes/info.rs b/src/modes/info.rs index 1e44e1a..05f2d0c 100644 --- a/src/modes/info.rs +++ b/src/modes/info.rs @@ -1,9 +1,10 @@ use anyhow::anyhow; +use clap::error::ErrorKind; use clap::Command; use std::path::PathBuf; use std::str::FromStr; -use crate::common::{format_size, string_column}; +use crate::modes::common::{format_size, string_column}; use crate::compression::get_engine; use crate::compression::CompressionType; use crate::db::{get_item, get_item_last, get_item_matching}; @@ -48,7 +49,7 @@ pub fn mode_info( .collect(); let mut table = Table::new(); - if std::io::stdout().is_terminal() { + if is_terminal::stdout().is_terminal() { table.set_format(*format::consts::FORMAT_BOX_CHARS_NO_BORDER_LINE_SEPARATOR); } else { table.set_format(*format::consts::FORMAT_NO_BORDER_LINE_SEPARATOR);