-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Console] Add ReStructuredText descriptor #48981
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
Conversation
I don't understand the Psalm failure. The error is |
@fabpot mind reviewing this since you approved the last one? |
src/Symfony/Component/Console/Descriptor/ReStructuredTextDescriptor.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Console/Tests/Descriptor/AbstractDescriptorTest.php
Outdated
Show resolved
Hide resolved
This PR was squashed before being merged into the 6.3 branch. Discussion ---------- Fix Psalm errors | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | Not sure what you call a CI fix 🤷 | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | License | MIT <!-- Replace this notice by a short README for your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the latest branch. - For new features, provide some code snippets to help understand usage. - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility (see https://symfony.com/bc). --> Psalm runs frequently fail, such as #48981 Commits ------- 62dcacd Fix Psalm errors
f80980c
to
6045c93
Compare
Thanks for the review, all feedback addressed, this is good to go. Tests are failing in HEAD, so probably not related to this PR. I think every PR I've opened has had failures of this nature. Have you thought about using branch protections to prevent PRs / commits with failing tests from being merged? |
src/Symfony/Component/Console/Descriptor/ReStructuredTextDescriptor.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Console/Descriptor/ReStructuredTextDescriptor.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only have CS fixes to suggest :)
src/Symfony/Component/Console/Descriptor/ReStructuredTextDescriptor.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Console/Descriptor/ReStructuredTextDescriptor.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Console/Descriptor/ReStructuredTextDescriptor.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Console/Descriptor/ReStructuredTextDescriptor.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Console/Descriptor/ReStructuredTextDescriptor.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Console/Descriptor/ReStructuredTextDescriptor.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Console/Descriptor/ReStructuredTextDescriptor.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Console/Descriptor/ReStructuredTextDescriptor.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Console/Descriptor/ReStructuredTextDescriptor.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Console/Descriptor/ReStructuredTextDescriptor.php
Outdated
Show resolved
Hide resolved
0bc4037
to
a7e5478
Compare
Thanks for the feedback, all comments addressed. |
Is there anything else missing here? |
Thank you @danepowell. |
This PR was squashed before being merged into the 6.3 branch. Discussion ---------- [Console] Add ReStructuredText descriptor | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Fix #45717 | License | MIT | Doc PR | n/a, descriptors are internal and not documented. ### Description The console component currently has descriptors for Markdown, Json, etc. This feature would add Restructured Text descriptor (rst) as an option. This replaces and addresses all feedback from #45718 ### Example ``` $helper = new DescriptorHelper(); $helper->describe($output, $this->getApplication(), [ 'format' => 'rst', ]); ``` Commits ------- f3ab66e [Console] Add ReStructuredText descriptor
a7e5478
to
f3ab66e
Compare
@danepowell Would you be interested in supporting restructuredtext in |
I only build console apps and actively avoid the Framework bundle because of all the web-specific bulk. So I don't have an interest in adding to it. |
Description
The console component currently has descriptors for Markdown, Json, etc. This feature would add Restructured Text descriptor (rst) as an option.
This replaces and addresses all feedback from #45718
Example