middleware-list command is now --default-stack
This commit is contained in:
11
bin/cli.js
11
bin/cli.js
@ -1,8 +1,15 @@
|
||||
#!/usr/bin/env node
|
||||
const nodeVersionMatches = require('node-version-matches')
|
||||
|
||||
if (nodeVersionMatches('>=8.0.0')) {
|
||||
require('../lib/cli-app').run()
|
||||
if (nodeVersionMatches('>=8')) {
|
||||
const WsCli = require('../lib/cli-app')
|
||||
const cli = new WsCli()
|
||||
try {
|
||||
cli.start()
|
||||
} catch (err) {
|
||||
console.error(require('util').inspect(err, { depth: 6, colors: true }))
|
||||
process.exitCode = 1
|
||||
}
|
||||
} else {
|
||||
console.log('Sorry, this app requires node v8.0.0 or above. Please upgrade https://nodejs.org/en/')
|
||||
}
|
||||
|
Reference in New Issue
Block a user