lix-website/themes/lix/assets/bootstrap/node_modules/cspell/bin.js

17 lines
484 B
JavaScript
Raw Normal View History

2024-04-27 03:39:10 +00:00
#!/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;
}
});