OSDN Git Service

[Development and Manual test] showing help correctly
[eos/zephyr.git] / cli / zephyr
1 #!/usr/bin/env node
2
3 const zephyr = require('commander');
4 const chalk = require('chalk');
5
6 zephyr
7 .command('serve', 'start web server')
8 .command('debug', 'serve with debug mode')
9 .command('parse', 'create json file of OptionControlFile from Eos directory')
10 .on('--help', function() {
11     console.log('Environment variables:');
12     console.log('');
13     console.log('   ZEPHYR_HOME: The Path of zephyr directory');
14     console.log('');
15     console.log('');
16     console.log(('Documentation can be found at ' + chalk.blue('http://www.yasunaga-lab.bio.kyutech.ac.jp/EosJ/index.php/zephyr')));
17     console.log('');
18 })
19 .parse(process.argv);
20