Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor commands into modules #277

Merged
merged 5 commits into from
Dec 7, 2015
Merged

Conversation

anandthakker
Copy link
Contributor

Prepares for #261

See the note in the commit message for 5c8459d

@tmcw @jfirebaugh The refactoring here should be good to go. If you're 👍 on this then I can also go ahead and do #261 as part of this PR.

Anand Thakker added 4 commits December 6, 2015 18:12
Arg parsing is now split into common options (in bin/documentation.js)
and command-specific options (in each command module, exported as
parseArgs).

This includes moving `--private` and `--github` to the common args
instead of having them under the build/serve commands.  Reason: these
two args are options understood by the main module, as opposed to args
like `--format` which are only understood by the actual output piece
in build/serve.

Also removes `args.js`, which had previously exported the argument
parsing for use in situations like documentation-readme.  The need
for this, I think, is largely made irrelevant in the face of slightly
generalizing the CLI to use commands.
@anandthakker anandthakker changed the title Refactor commands new Refactor commands into modules Dec 6, 2015
@tmcw
Copy link
Member

tmcw commented Dec 7, 2015

👍 want to merge this PR now and do #261 in another pass?

@anandthakker
Copy link
Contributor Author

@tmcw Yeah, I think that makes sense. Merging.

anandthakker added a commit that referenced this pull request Dec 7, 2015
@anandthakker anandthakker merged commit 571137a into master Dec 7, 2015
@anandthakker anandthakker deleted the refactor-commands-new branch December 7, 2015 02:28
rhendric pushed a commit to rhendric/documentation that referenced this pull request Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants