Skip to content

Commit

Permalink
Rename execute -> spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
aomarks committed May 9, 2022
1 parent f1fa205 commit 5d01caf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ class ScriptExecution {
reason: 'cached',
});
} else {
const result = await this.#executeCommandIfNeeded();
const result = await this.#spawnCommandIfNeeded();
if (!result.ok) {
return {ok: false, error: [result.error]};
}
Expand Down Expand Up @@ -368,7 +368,7 @@ class ScriptExecution {
return {ok: true, value: results};
}

async #executeCommandIfNeeded(): Promise<Result<void>> {
async #spawnCommandIfNeeded(): Promise<Result<void>> {
// It's valid to not have a command defined, since thats a useful way to
// alias a group of dependency scripts. In this case, we can return early.
if (!this.#script.command) {
Expand Down

0 comments on commit 5d01caf

Please sign in to comment.