8000 GitHub - world2space/template-commanderjs
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

world2space/template-commanderjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 CommanderJS Nested Routes

Structure

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]

Commands

Create new project

npm run create-project

? Project name: name
? Project description: description

output:

src
 ┣ +name
 ┃ ┣ +command
 ┃ ┃ ┣ +actions.js
 ┃ ┃ ┗ +index.js
 ┃ ┗ +index.js

Create new command

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

Create new sub command

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

comander2documetation Plugin

Github NPM

Open Created Documentation

(created with commander2documentation)

Authors

Support Us

Patreon Buy Me A Coffe Kofi Liberapay Github Sponsor Open Collective

Communicate

Telegram Mail

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0