Skip to content
Myr

optional descriptions

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 0f5ca01 · Browse files · 2 files+10 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+10 added−4 removed

  • other:+10 added−4 removed

2 files+10 added−4 removed

modified:examples/deploy+6 added-3 removed
11 unmodified lines
12 .option('-c, --config <path>', 'set config path. defaults to ./deploy.conf')13 .option('-T, --no-tests', 'ignore test hook')1415program16 .command('setup')17 .action(function(){18 console.log('setup');16 .command('setup [env]')17 .description('run setup commands for all envs')18 .action(function(env){19 env = env || 'all';20 console.log('setup for %s env(s)', env);21 });2223program24 .command('exec <cmd>')25 .description('execute the given remote cmd')26 .action(function(cmd){27 console.log('exec "%s"', cmd);28 });29
9 unmodified lines
modified:lib/commander.js+4 added-1 removed
580 unmodified lines
581 return arg.required582 ? '<' + arg.name + '>'583 : '[' + arg.name + ']';584 }).join(' ');585 return cmd.name + ' ' + args + '\n' + cmd.description();585 return cmd.name + ' ' + args586 + (cmd.description()587 ? '\n' + cmd.description()588 : '');589 }).join('\n\n').replace(/^/gm, ' ')590 , ''591 ].join('\n');592};
210 unmodified lines