mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-01-14 00:00:02 +03:00
feat: stash all changes at once
This commit is contained in:
parent
60d4735d11
commit
ce1a1d1e5a
|
@ -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
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue