hash-runner
Version:
Executes a command when a change is detected in specified files. Not an active file watcher.
17 lines • 817 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const commander_1 = require("commander");
const index_1 = require("../index");
const program = new commander_1.Command();
program.option("-c, --config <path>", "specify the path to the configuration file").parse(process.argv);
program.option("-f, --force", "Force hash-regeneration and execute").parse(process.argv);
program.option("-s, --silent", "Suppress log output").parse(process.argv);
const options = program.opts();
const configPath = options.config;
const hashRunner = new index_1.HashRunner(configPath, { force: options.force, silent: options.silent });
hashRunner.run().catch((error) => {
console.error("Error running hash runner:", error);
process.exit(1);
});
//# sourceMappingURL=hash-runner.js.map