Skip to content
Myr

Merge pull request #391 from zhiyelee/newversion

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

prepare for next release v2.8.0

authored by Zhiye Li · committed by Zhiye Li · parents c6ddd55, 0052b7e · Browse files · 5 files+24 added−1 removed
This commit

State

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

Diff stats

5 files+24 added−1 removed

  • other:+24 added−1 removed

5 files+24 added−1 removed

modified:examples/pm+1 added
5 unmodified lines
6 .version('0.0.1')7 .command('install [name]', 'install one or more packages')8 .command('search [query]', 'search with optional query')9 .command('list', 'list packages installed')10 .command('publish', 'publish the package')11 .parse(process.argv);1213// here .command() is invoked with a description,14// and no .action(callback) calls to handle sub-commands.
13 unmodified lines
added:examples/pm-publish.js+6 added
modified:History.md+10 added
122.8.0 / 2015-04-073==================45 * Add `process.execArg` support, execution args like `--harmony` will be passed to sub-commands #387 @DigitalIO @zhiyelee6 * Fix bug in Git-style sub-commands #372 @zhiyelee7 * Allow commands to be hidden from help #383 @tonylukasavage8 * When git-style sub-commands are in use, yet none are called, display help #382 @claylo9 * Add ability to specify arguments syntax for top-level command #258 @rrthomas10 * Support multiline descriptions #208 @zxqfox11122.7.1 / 2015-03-1113==================1415 * Revert #347 (fix collisions when option and first arg have same name) which causes a bug in #367.
234 unmodified lines
modified:package.json+1 added-1 removed
modified:Readme.md+6 added
174 unmodified lines
175The commander will try to search the executables in the directory of the entry script (like `./examples/pm`) with the name `program-command`, like `pm-install`, `pm-search`.176177If the program is designed to be installed globally, make sure the executables have proper modes, like `755`.178179### `--harmony`180181You can enable `--harmony` option in two ways:182* Use `#! /usr/bin/env node --harmony` in the sub-commands scripts. Note some os version don’t support this pattern.183* Use the `--harmony` option when call the command, like `node --harmony examples/pm publish`. The `--harmony` option will be preserved when spawning sub-command process.184185## Automated --help186187 The help information is auto-generated based on the information commander already knows about your program, so the following `--help` info is for free:188
155 unmodified lines