forked from mirrors/probot
17 lines
475 B
JavaScript
Executable File
17 lines
475 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')
|
|
.command('receive', 'Receive a single event and payload')
|
|
.parse(process.argv)
|