-
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.
Refractoring rssg to be more readable:
* return process exit 0 for main program and call err in read argument * rename read_text function to be more specfic on what it does * moved logic in proccess function to 2 distinct funtions
- Loading branch information
1 parent
98c57d0
commit 239c5ed
Showing
3 changed files
with
264 additions
and
211 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
use std::process; | ||
|
||
use crate::cli::arguments::read_arguments; | ||
|
||
pub fn run() { | ||
//Takes appropriate action based on arguments passed ex. rssg --input | ||
read_arguments().unwrap(); | ||
if read_arguments().is_err() { | ||
process::exit(0); | ||
} | ||
} |
Oops, something went wrong.