feat: stash all changes at once

This commit is contained in:
Dompeh Kofi Bright 2024-03-13 03:07:43 +00:00
parent 60d4735d11
commit ce1a1d1e5a
2 changed files with 3 additions and 5 deletions

View file

@ -1,6 +1,6 @@
use crate::exercise::{Exercise, ExerciseList};
use crate::project::RustAnalyzerProject;
use crate::run::{reset, run, reset_all};
use crate::run::{reset, reset_all, run};
use crate::verify::verify;
use clap::{Parser, Subcommand};
use console::Emoji;
@ -56,9 +56,7 @@ enum Subcommands {
/// The name of the exercise
name: String,
},
ResetAll {
},
ResetAll {},
/// Return a hint for the given exercise
Hint {
/// The name of the exercise

View file

@ -36,7 +36,7 @@ pub fn reset_all(exercises: &[Exercise]) -> Result<(), ()> {
for exercise in exercises {
let command = Command::new("git")
.args(["stash", "push", "--"])
.arg (&exercise.path)
.arg(&exercise.path)
.spawn();
if command.is_err() {