fix: correct imports and add clap::error::ErrorKind

This commit is contained in:
Andrew Phillips (aider)
2025-05-10 12:25:26 -03:00
parent 6d07cf6f18
commit 796ded6a6b

View File

@@ -1,9 +1,10 @@
use anyhow::anyhow; use anyhow::anyhow;
use clap::error::ErrorKind;
use clap::Command; use clap::Command;
use std::path::PathBuf; use std::path::PathBuf;
use std::str::FromStr; 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::get_engine;
use crate::compression::CompressionType; use crate::compression::CompressionType;
use crate::db::{get_item, get_item_last, get_item_matching}; use crate::db::{get_item, get_item_last, get_item_matching};
@@ -48,7 +49,7 @@ pub fn mode_info(
.collect(); .collect();
let mut table = Table::new(); 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); table.set_format(*format::consts::FORMAT_BOX_CHARS_NO_BORDER_LINE_SEPARATOR);
} else { } else {
table.set_format(*format::consts::FORMAT_NO_BORDER_LINE_SEPARATOR); table.set_format(*format::consts::FORMAT_NO_BORDER_LINE_SEPARATOR);