use ares::cli::parse_cli_args;
use ares::cli_pretty_printing::{program_exiting_successful_decoding, success};
use ares::perform_cracking;
fn main() {
let (text, config) = parse_cli_args();
let result = perform_cracking(&text, config);
success(&format!(
"DEBUG: main.rs - Result from perform_cracking: {:?}",
result.is_some()
));
match result {
Some(result) => {
success(&format!(
"DEBUG: main.rs - Got successful result with {} decoders in path",
result.path.len()
));
program_exiting_successful_decoding(result);
}
None => {
success("DEBUG: main.rs - Got None result, calling failed_to_decode");
ares::cli_pretty_printing::failed_to_decode()
}
}
}