refactor: move compression types to compression_engine module

This commit is contained in:
Andrew Phillips (aider)
2025-05-12 17:12:17 -03:00
parent b08c7e7346
commit 66e61a4196
5 changed files with 8 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
use crate::compression::CompressionType; use crate::compression_engine::CompressionType;
use libc::c_int; use libc::c_int;
use std::path::PathBuf; use std::path::PathBuf;
use std::str::FromStr; use std::str::FromStr;

View File

@@ -1,6 +1,6 @@
use anyhow::anyhow; use anyhow::anyhow;
use crate::compression::CompressionType; use crate::compression_engine::CompressionType;
use clap::Command; use clap::Command;
use std::path::PathBuf; use std::path::PathBuf;
use std::str::FromStr; use std::str::FromStr;

View File

@@ -10,7 +10,7 @@ use clap::Command;
use log::debug; use log::debug;
use rusqlite::Connection; use rusqlite::Connection;
use crate::compression::CompressionType; use crate::compression_engine::CompressionType;
use crate::db::{self}; use crate::db::{self};
use crate::modes::common::get_meta_from_env; use crate::modes::common::get_meta_from_env;
use chrono::Utc; use chrono::Utc;

View File

@@ -4,10 +4,10 @@ use is_terminal::IsTerminal;
use std::path::PathBuf; use std::path::PathBuf;
use strum::IntoEnumIterator; use strum::IntoEnumIterator;
use crate::compression::default_type; use crate::compression_engine::default_type;
use crate::compression::program::CompressionEngineProgram; use crate::compression_engine::program::CompressionEngineProgram;
use crate::compression::CompressionType; use crate::compression_engine::CompressionType;
use crate::compression::COMPRESSION_PROGRAMS; use crate::compression_engine::COMPRESSION_PROGRAMS;
use std::str::FromStr; use std::str::FromStr;
use crate::FORMAT_BOX_CHARS_NO_BORDER_LINE_SEPARATOR; use crate::FORMAT_BOX_CHARS_NO_BORDER_LINE_SEPARATOR;

View File

@@ -3,7 +3,7 @@ use std::path::PathBuf;
use std::str::FromStr; use std::str::FromStr;
use crate::db; use crate::db;
use crate::CompressionType; use crate::compression_engine::CompressionType;
use clap::error::ErrorKind; use clap::error::ErrorKind;
use clap::Command; use clap::Command;
use log::{debug, info}; use log::{debug, info};