OSDN Git Service

remove --harmony option
[eos/zephyr.git] / cli / zephyr-parse
1 #!/usr/bin/env node --harmony
2
3 const zephyr = require('commander');
4 const chalk = require('chalk');
5 const cp = require('child_process').spawn;
6
7 zephyr
8 .usage('[action]')
9
10 const parser = cp('ruby', [__dirname + '/lib/create-json-file.rb']);
11
12 parser.stdout.on('data', function (data) {
13     console.log(data.toString().trim());
14 });
15
16 parser.stderr.on('data', function (data) {
17     console.log(data.toString().trim());
18 });
19
20 zephyr.on('--help', function() {
21     console.log(('Documentation can be found at ' + chalk.blue('http://www.yasunaga-lab.bio.kyutech.ac.jp/EosJ/index.php/zephyr')));
22     console.log('');
23 });
24
25 zephyr.parse(process.argv);