10000 [Console] Add --markdown export to HelpCommand by zczapran · Pull Request #6339 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Console] Add --markdown export to HelpCommand #6339

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

Closed
wants to merge 1 commit into from
Closed

[Console] Add --markdown export to HelpCommand #6339

wants to merge 1 commit into from

Conversation

zczapran
Copy link

Bug fix: no
Feature addition: yes
Backwards compatibility break: yes
Symfony2 tests pass: yes
Fixes the following tickets: #6327
Todo: none
License of the code: MIT

@igorw
Copy link
Contributor
igorw commented Dec 13, 2012

At this point we should consider separating formatting from the command class itself, and perhaps having a --format=xml flag instead of --xml.

@zczapran
Copy link
Author

Yep, but that would involve some bigger refactoring.

@Seldaek
Copy link
Member
Seldaek commented Dec 14, 2012

Thanks, it's a good start. It doesn't respect the docopt spec fully but that can always be improved with time, at least it seems to render something usable.

@zczapran
Copy link
Author

Build is failing because of a failing test in master.

@stloyd
Copy link
Contributor
stloyd commented Jan 2, 2013

@fabpot Could you review this ?

@fabpot
Copy link
Member
fabpot commented Apr 20, 2013

Closing in favor of #7454

@fabpot fabpot closed this Apr 20, 2013
fabpot added a commit that referenced this pull request Apr 23, 2013
This PR was squashed before being merged into the master branch (closes #7454).

Discussion
----------

[Console] application/command as text/xml/whatever decoupling

This PR removes description generation from `Command`, `Application` and `InputDefinition` classes and delegate it to specialized descriptor classes, making it dead simple to add new output formats.

**Maybe this could include other commands, like `router:debug` or `container:debug` (see #5740)?**

- [x] Add a `DescriptorProvider` which uses `DescriptorInterface` objects to describe things.
- [x] Add `txt` descriptors.
- [x] Add `xml` descriptors.
- [x] Add `json` descriptors.
- [x] Add `md` descriptors.
- [x] Remove obsolete methods.
- [x] Repair tests.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #6339

Commits
-------

51512e6 [Console] application/command as text/xml/whatever decoupling
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.

5 participants
0