src
┣ test
┃ ┣ actions.js
┃ ┗ index.js
┗ test2
┃ ┣ custom-sub
┃ ┃ ┣ actions.js
┃ ┃ ┗ index.js
┃ ┗ index.js
<bin-command> test <arguments> [options]
<bin-command> test2 custom-sub <arguments> [options]
npm run create-project
? Project name: name
? Project description: description
output:
src
┣ +name
┃ ┣ +command
┃ ┃ ┣ +actions.js
┃ ┃ ┗ +index.js
┃ ┗ +index.js
npm run create-command
? Which project do you want to work on?: name
? Command name: custom-command
? Sub command name: sub-custom-command
? Sub command description: sub custom command description
output:
src
┣ name
┃ ┣ +custom-command
┃ ┃ ┗ +sub-custom-command
┃ ┃ ┃ ┣ +actions.js
┃ ┃ ┃ ┗ +index.js
┃ ┗ index.js
npm run create-sub-command
? Do you want to use the _cache_name_ project?(cache): No
? Which project do you want to work on?: name
? Command name: custom-command
? Sub command name: new-sub-command
? Sub command description: new sub command description
output:
src
┣ name
┃ ┣ custom-command
┃ ┃ ┗ +new-sub-command
┃ ┃ ┃ ┣ +actions.js
┃ ┃ ┃ ┗ +index.js
┃ ┗ index.js
(created with commander2documentation)