You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
360 B
15 lines
360 B
#!/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); |
|
} |
|
if (e instanceof app.CheckFailed) { |
|
process.exitCode = e.exitCode; |
|
} |
|
});
|
|
|