Redo command building so that we don't repeat as much, and to

make it easier to add new ones
This commit is contained in:
datdenkikniet 2023-04-16 11:00:39 +02:00
parent 404867cdf9
commit b59bf686c1
3 changed files with 270 additions and 363 deletions

View file

@ -356,9 +356,7 @@ fn command_parser(
| CargoCommand::Doc { .. }
| CargoCommand::Test { .. }
| CargoCommand::Book { .. }
| CargoCommand::ExampleSize { .. }
| CargoCommand::BuildInDir { .. }
| CargoCommand::CheckInDir { .. } => {
| CargoCommand::ExampleSize { .. } => {
let cargo_result = run_command(command, output_mode)?;
Ok(cargo_result)
}