lix-website/themes/lix/assets/bootstrap/node_modules/cspell/bin.js
2024-04-26 22:49:34 -06:00

17 lines
484 B
JavaScript
Executable file

#!/usr/bin/env node
'use strict';
const app = require('./dist/app');
const program = require('commander');
app.run(program, process.argv).catch((e) => {
if (!(e instanceof program.CommanderError) && !(e instanceof app.CheckFailed)) {
console.log(e);
// It is possible an explicit exit code was set, use it if it was.
process.exitCode = process.exitCode || 1;
}
if (e instanceof app.CheckFailed) {
process.exitCode = e.exitCode;
}
});