1 Commits
Author SHA1 Message Date
John Gee 8c3dd6ffe9 createCommand factory routine (#1191)
* Add factory method

* Fix return doc

* Can not use "this" for return type of createCommand

* Use return type of createCommand for subcommand

* Add mention of .command from .createCommand

* Remove trailing space

* Add examples for createCommand

* Explain example and make a little more realistic

* Add  comments pointing from .addCommand to .command

One of the downsides of extra ways of adding and creating commands is confusion with the more common way.

* Add createCommand to README

* Shift command/subcommand contrast

* Use single quotes in ts like in js, and clean up whitespace in new code
2020-03-02 19:31:43 +13:00