Add --custom-command (#927)

* Add --custom-command
Fixes #922

* fix
This commit is contained in:
Roey Darwish Dror
2022-05-07 15:25:51 +03:00
committed by GitHub
parent fdf03f6548
commit c166d51fb8
3 changed files with 18 additions and 4 deletions

View File

@@ -360,9 +360,11 @@ fn run() -> Result<()> {
if let Some(commands) = config.commands() {
for (name, command) in commands {
runner.execute(Step::CustomCommands, name, || {
generic::run_custom_command(name, command, &ctx)
})?;
if config.should_run_custom_command(name) {
runner.execute(Step::CustomCommands, name, || {
generic::run_custom_command(name, command, &ctx)
})?;
}
}
}