UNPKG

hash-runner

Version:

Executes a command when a change is detected in specified files. Not an active file watcher.

15 lines 717 B
#!/usr/bin/env node import { Command } from "commander"; import { HashRunner } from "../index"; const program = new 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 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