Create Shell step for various shell utilities (#217)
This commit is contained in:
committed by
Roey Darwish Dror
parent
94c0102885
commit
f51a26494d
@@ -33,6 +33,7 @@ lazy_static! {
|
||||
m.insert("remotes", Step::Remotes);
|
||||
m.insert("rustup", Step::Rustup);
|
||||
m.insert("cargo", Step::Cargo);
|
||||
m.insert("shell", Step::Shell);
|
||||
|
||||
#[cfg(windows)]
|
||||
m.insert("powershell", Step::Powershell);
|
||||
@@ -65,6 +66,8 @@ pub enum Step {
|
||||
/// Don't run Cargo
|
||||
Cargo,
|
||||
/// Don't update Powershell modules
|
||||
Shell,
|
||||
/// Don't run shell updates (zplug, zr, oh-my-zsh, fisher, tmux)
|
||||
Powershell,
|
||||
}
|
||||
|
||||
|
||||
@@ -260,6 +260,7 @@ fn run() -> Result<(), Error> {
|
||||
|
||||
#[cfg(unix)]
|
||||
{
|
||||
if config.should_run(Step::Shell) {
|
||||
execute(
|
||||
&mut report,
|
||||
"zr",
|
||||
@@ -291,6 +292,7 @@ fn run() -> Result<(), Error> {
|
||||
config.no_retry(),
|
||||
)?;
|
||||
}
|
||||
}
|
||||
|
||||
if config.should_run(Step::Rustup) {
|
||||
execute(
|
||||
|
||||
Reference in New Issue
Block a user