Skip to content

Commit

Permalink
rename command module
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteZ1337 committed Apr 16, 2024
1 parent d1b764c commit c58986a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/sub/pack.rs → src/command/pack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use walkdir::WalkDir;
use zip::ZipArchive;

use crate::{crypto, I18nCompatMode, NewArgs};
use crate::sub::AssetMetadata;
use crate::command::AssetMetadata;

pub fn pack(args: &NewArgs, input: &Option<PathBuf>, output: &PathBuf, locale_mode: &I18nCompatMode) -> anyhow::Result<()> {
let input = find_input(input);
Expand Down
2 changes: 1 addition & 1 deletion src/sub/unpack.rs → src/command/unpack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use binrw::io::BufReader;

use crate::{crypto, NewArgs};
use crate::read_ext::ReadExt;
use crate::sub::ArtHeader;
use crate::command::ArtHeader;
use crate::unity::AssetsFile;

pub fn unpack(args: &NewArgs, input: &PathBuf, output: &PathBuf) -> anyhow::Result<()> {
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ use thiserror::Error;
use walkdir::WalkDir;

use crate::read_ext::ReadExt;
use crate::sub::{AssetMetadata, pack, patch, unpack};
use crate::command::{AssetMetadata, pack, patch, unpack};
use crate::unity::AssetsFile;

mod crypto;
mod read_ext;
mod sub;
mod command;
mod unity;

#[derive(Debug, Parser)]
Expand Down

0 comments on commit c58986a

Please sign in to comment.