-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3032be4
commit 9f11868
Showing
9 changed files
with
165 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
use notox::{notox, parse_args, print_output}; | ||
use notox::{notox_full, parse_args}; | ||
|
||
fn main() -> Result<(), ()> { | ||
let args: Vec<String> = std::env::args().collect(); | ||
let parsed_args = parse_args(args); | ||
if let Err(code) = parsed_args { | ||
std::process::exit(code); | ||
} else if let Ok((options, paths_to_check)) = parsed_args { | ||
let final_res = notox(&options, paths_to_check); | ||
if let Err(code) = print_output(&options, final_res) { | ||
std::process::exit(code); | ||
} | ||
} | ||
Ok(()) | ||
let (options, paths_to_check) = parsed_args.unwrap(); | ||
let result_code = notox_full(&options, paths_to_check); | ||
std::process::exit(result_code); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.