Skip to content

Commit

Permalink
fix: moved cli modules to separate directory
Browse files Browse the repository at this point in the history
  • Loading branch information
SalOne22 committed Mar 15, 2024
1 parent e527d69 commit 81593d0
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 7 deletions.
6 changes: 5 additions & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ use std::path::PathBuf;
use clap::{arg, command, value_parser, Command};
use indoc::indoc;

use crate::{codecs::Codecs, preprocessors::Preprocessors, utils::threads};
use self::{codecs::Codecs, preprocessors::Preprocessors, utils::threads};

pub mod codecs;
pub mod preprocessors;
pub mod utils;

pub fn cli() -> Command {
command!()
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/preprocessors/mod.rs → src/cli/preprocessors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use indoc::indoc;

use resize::ResizeValue;

use crate::preprocessors::resize::{ResizeFilter, ResizeFit};
use crate::cli::preprocessors::resize::{ResizeFilter, ResizeFit};

pub mod pipeline;
mod quantization;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 1 addition & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
use cli::cli;
use preprocessors::pipeline::PreprocessorPipeline;
use cli::{cli, preprocessors::pipeline::PreprocessorPipeline};
use zune_image::{image::Image, pipelines::Pipeline};

mod cli;
mod codecs;
mod preprocessors;
mod utils;

fn main() {
pretty_env_logger::init();
Expand Down

0 comments on commit 81593d0

Please sign in to comment.