forked from mirrors/probot
16 lines
420 B
JavaScript
Executable File
16 lines
420 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
const semver = require('semver');
|
|
const version = require('../package').engines.node;
|
|
|
|
if (!semver.satisfies(process.version, version)) {
|
|
console.log(`Node.js version ${version} is required. You have ${process.version}.`);
|
|
process.exit(1);
|
|
}
|
|
|
|
require('commander')
|
|
.version(require('../package').version)
|
|
.usage('<command> [options]')
|
|
.command('run', 'run the bot')
|
|
.parse(process.argv);
|