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
441 B

8 years ago
  1. #!/usr/bin/env node
  2. const nodeVersionMatches = require('node-version-matches')
  3. if (nodeVersionMatches('>=8')) {
  4. const WsCli = require('../lib/cli-app')
  5. const cli = new WsCli()
  6. try {
  7. cli.start()
  8. } catch (err) {
  9. console.error(require('util').inspect(err, { depth: 6, colors: true }))
  10. process.exitCode = 1
  11. }
  12. } else {
  13. console.log('Sorry, this app requires node v8.0.0 or above. Please upgrade https://nodejs.org/en/')
  14. }