1 | module.exports = function helloCommand(program) {
|
2 | 'use strict';
|
3 |
|
4 | program
|
5 | .command('hello <name>')
|
6 | .description('Say hello to <name>')
|
7 | .action(function(name, command) {
|
8 |
|
9 | console.log('Hello ' + name);
|
10 | program.log(name);
|
11 |
|
12 | });
|
13 |
|
14 | };
|