-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Console] Add hyperlinks support #29168
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
Oh you actually went and figured it out. Great work @ostrolucky! 👍 |
Wow! We need this in CliDumper also! |
Does it support |
This PR doesn't use this functionality, it only enables its usage. Screenshot was just potential scenario, it would require work outside the scope. |
src/Symfony/Component/Console/Formatter/OutputFormatterStyle.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Console/Tests/Formatter/OutputFormatterTest.php
Outdated
Show resolved
Hide resolved
Do we have any case where wrapping could need using the "id" attribute described in the linked doc? |
I don't |
e29f77b
to
55ffa6e
Compare
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.
LGTM with one minor comment.
Can you please add a line in the changelog file of the component + create a doc issue/PR?
src/Symfony/Component/Console/Formatter/OutputFormatterStyle.php
Outdated
Show resolved
Hide resolved
@ostrolucky Can you submit a PR on the docs to document this new feature? |
f1d658d
to
db750ed
Compare
Thank you @ostrolucky. |
This PR was squashed before being merged into the 4.3-dev branch (closes #29168). Discussion ---------- [Console] Add hyperlinks support | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #21207 | License | MIT | Doc PR | For details about this see https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda Here's one idea/use case which could utilize this feature (not implemented in this PR as it requires more work)  I checked this in cmd.exe as well and no sideffects there Commits ------- db750ed [Console] Add hyperlinks support
…s-grekas) This PR was merged into the 4.3-dev branch. Discussion ---------- [VarDumper] add support for links in CliDumper | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Same as #29168 for VarDumper:  Thanks @ostrolucky for this nice discovery! Commits ------- e7cd44f [VarDumper] add support for links in CliDumper
This PR was merged into the 4.3-dev branch. Discussion ---------- [VarDumper] Use hyperlinks in CliDescriptor | Q | A | ------------- | --- | Branch? | master <!-- see below --> | Bug fix? | no | New feature? | yes <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | Part of #29585 <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | N/A Leverages #29168 to add the hyperlink directly on the source text instead of printing below: #### Before (or with `symfony/console < 4.3`)  #### After  Commits ------- e54e219 [VarDumper] Use hyperlinks in CliDescriptor
@danielchodusov can you create issue instead please? |
For details about this see https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
Here's one idea/use case which could utilize this feature (not implemented in this PR as it requires more work)

I checked this in cmd.exe as well and no sideffects there