Initial commit
This commit is contained in:
18
node_modules/astro/dist/cli/infra/cli-command-runner.js
generated
vendored
Normal file
18
node_modules/astro/dist/cli/infra/cli-command-runner.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
class CliCommandRunner {
|
||||
#helpDisplay;
|
||||
constructor({
|
||||
helpDisplay
|
||||
}) {
|
||||
this.#helpDisplay = helpDisplay;
|
||||
}
|
||||
run(command, ...args) {
|
||||
if (this.#helpDisplay.shouldFire()) {
|
||||
this.#helpDisplay.show(command.help);
|
||||
return;
|
||||
}
|
||||
return command.run(...args);
|
||||
}
|
||||
}
|
||||
export {
|
||||
CliCommandRunner
|
||||
};
|
||||
Reference in New Issue
Block a user