Skip to content

Commit

Permalink
Merge pull request #5 from acridotheres/rustfmt-f016cb7384261e018ed4f…
Browse files Browse the repository at this point in the history
…0ededd887ba1a88dd18

Format code using rustfmt for f016cb7
  • Loading branch information
Le0X8 authored Aug 2, 2024
2 parents f016cb7 + 4ddaf50 commit a6e7b18
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/commands.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub mod extract;
pub mod list;
pub mod metadata;
pub mod version;
pub mod list;
pub mod extract;
25 changes: 22 additions & 3 deletions src/commands/extract.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
use corelib::{archive, formats};

pub fn extract(format: String, input: String, output: String, index: Option<u32>, path: Option<String>, all: bool, check_integrity: bool, buffer_size: u64) {
archive::extract(formats::from_string(&format), input, output, index, path, all, check_integrity, buffer_size).unwrap();
}
pub fn extract(
format: String,
input: String,
output: String,
index: Option<u32>,
path: Option<String>,
all: bool,
check_integrity: bool,
buffer_size: u64,
) {
archive::extract(
formats::from_string(&format),
input,
output,
index,
path,
all,
check_integrity,
buffer_size,
)
.unwrap();
}
2 changes: 1 addition & 1 deletion src/commands/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ pub fn version() {
println!("Acridotheres\n");
println!("cli v{}", env!("CARGO_PKG_VERSION"));
println!("core v{}", corelib::get_version());
}
}

0 comments on commit a6e7b18

Please sign in to comment.