forked from Plugin-JF-Onkostar/osc-variant
Issue #15: Implement check subcommand cli
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user