mirror of
https://github.com/notohh/rustlings.git
synced 2024-12-18 06:58:10 -05:00
Ignore stdout of git init
This commit is contained in:
parent
0b3ad9141b
commit
6ce31defb6
1 changed files with 2 additions and 1 deletions
|
@ -139,13 +139,14 @@ pub fn init() -> Result<()> {
|
||||||
let _ = Command::new("git")
|
let _ = Command::new("git")
|
||||||
.arg("init")
|
.arg("init")
|
||||||
.stdin(Stdio::null())
|
.stdin(Stdio::null())
|
||||||
|
.stdout(Stdio::null())
|
||||||
.stderr(Stdio::null())
|
.stderr(Stdio::null())
|
||||||
.status();
|
.status();
|
||||||
}
|
}
|
||||||
|
|
||||||
writeln!(
|
writeln!(
|
||||||
stdout,
|
stdout,
|
||||||
"\n{}\n\n{}",
|
"{}\n\n{}",
|
||||||
"Initialization done ✓".green(),
|
"Initialization done ✓".green(),
|
||||||
POST_INIT_MSG.bold(),
|
POST_INIT_MSG.bold(),
|
||||||
)?;
|
)?;
|
||||||
|
|
Loading…
Reference in a new issue