node-gh / gh

(DEPRECATED) GitHub CLI made with NodeJS. Use the official https://cli.github.com/ instead.
http://nodegh.io
Other
1.71k stars 217 forks source link

Set up multi-tiered command organization structure for v2 release #547

Closed protoEvangelion closed 6 years ago

protoEvangelion commented 6 years ago

The goal here is to create a clearer & more modularized separation of commands rather than having one large file like pull-request.js.

Ideal Folder Structure:

/src
  /cmds
    /issue
      close.ts
      create.ts
      list.ts
      index.ts
  app.ts

gh should have 3 levels of sub commands.

Multi-level commands 1st tier: gh issue 2nd tier: gh issue --list 3rd tier: gh issue --list --all

protoEvangelion commented 6 years ago

https://github.com/node-gh/gh/compare/2528dbf...1170284