Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: return non-zero exit code in expected error cases
* When trying to delete coauthor but no coauthor found with given key * When trying to mob with co-author key but no co-author found with given key * When trying to select co-author for mob session but no co-author added Improves names of tests to be more precise and clearer
- Loading branch information
Showing
6 changed files
with
68 additions
and
95 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,13 +1,9 @@ | ||
use git_mob_tool::{cli, coauthor_repo::GitConfigCoauthorRepo}; | ||
use std::{ | ||
error::Error, | ||
io::{stderr, stdout}, | ||
}; | ||
use std::{error::Error, io::stdout}; | ||
|
||
fn main() -> Result<(), Box<dyn Error>> { | ||
let coauthor_repo = GitConfigCoauthorRepo {}; | ||
let out = &mut stdout(); | ||
let err = &mut stderr(); | ||
cli::run(&coauthor_repo, out, err)?; | ||
cli::run(&coauthor_repo, out)?; | ||
Ok(()) | ||
} |
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.