Files
dealplustech/dealplustech-astro/node_modules/astro/dist/cli/infra/cli-command-runner.js
2026-03-02 12:35:14 +07:00

19 lines
323 B
JavaScript

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
};