Issue #15: Implement check subcommand cli

This commit is contained in:
2023-11-06 09:37:03 +01:00
parent dce2a5cdda
commit a55db66e57
4 changed files with 41 additions and 2 deletions

View File

@@ -40,6 +40,7 @@ use sha256::digest;
use crate::cli::{Cli, SubCommand};
use crate::model::onkostar_editor::OnkostarEditor;
use crate::model::Checkable;
use crate::profile::Profile;
mod cli;
@@ -257,6 +258,12 @@ fn main() -> Result<(), Box<dyn Error>> {
}
};
}
SubCommand::Check { file } => {
read_inputfile(file)?
.check()
.iter()
.for_each(|check_notice| println!("{}", check_notice));
}
#[cfg(feature = "unzip-osb")]
SubCommand::UnzipOsb {
file,