forked from lix-project/lix-website
17 lines
484 B
JavaScript
17 lines
484 B
JavaScript
|
#!/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;
|
||
|
}
|
||
|
});
|