This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Console/Tests
Fabien Potencier c3230f0a97 minor #20896 [Console] Enhance MarkdownDescriptor (ogizanagi)
This PR was squashed before being merged into the 3.3-dev branch (closes #20896).

Discussion
----------

[Console] Enhance MarkdownDescriptor

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | N/A
| License       | MIT
| Doc PR        | N/A

In order to add usefulness to this descriptor, this PR allows to jump to a command description by clicking on the command name on the application summary.

It's not a generic approach but IMHO a quick win that should work at least for Github flavoured markdown.

The markdown format should also avoid using `Application::getLongVersion` as the markdown document title, as it may contain tags (and unnecessary information using the framework).

Lastly, the markdown format is now cleaned from tags initially used for console output formatting and only keeps properly escaped ones.

Commits
-------

ef5b087b4f Do not output formatting tags
6896865bcc [Console] MarkdownDescriptor: Don't use getLongVersion
fc2395e237 [Console] MarkdownDescriptor: Link to commands anchors
2017-02-16 06:18:56 -08:00
..
Command feature #21075 [Console] Show hidden commands in json & xml descriptors (ogizanagi) 2017-01-04 06:29:21 -08:00
DependencyInjection Move AddConsoleCommandPass from FrameworkBundle to Console. 2017-01-11 13:05:48 +01:00
Descriptor [Console] Escape default value when dumping help 2016-12-30 11:17:25 +01:00
EventListener Add Console ExceptionListener 2017-01-23 23:15:00 +01:00
Fixtures minor #20896 [Console] Enhance MarkdownDescriptor (ogizanagi) 2017-02-16 06:18:56 -08:00
Formatter [PhpUnitBridge] Drop ErrorAssert in favor of @expectedDeprecation 2016-10-21 22:33:10 +02:00
Helper Merge branch '3.2' 2017-02-16 06:15:30 -08:00
Input Merge branch '3.1' 2016-09-19 13:29:03 -07:00
Logger [Console] Add ConsoleLogger::hasErrored() 2016-06-17 19:29:15 +02:00
Output Merge branch '2.7' into 2.8 2017-01-08 12:43:03 -08:00
Style Merge branch '3.2' 2017-01-31 22:52:27 +01:00
Tester [Console] Set user inputs from CommandTester 2016-06-16 09:44:16 +02:00
ApplicationTest.php Merge branch '3.2' 2016-12-19 17:13:57 +01:00
TerminalTest.php switched to use COLUMNS and LINES env vars to change terminal dimensions 2016-06-17 19:36:07 +02:00