8000 [Console] Colors in Command Name and Description · Issue #12051 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[Console] Colors in Command Name and Description #12051
Closed
@cryptiklemur

Description

@cryptiklemur

Not sure if this is desired, but you can specify format options when defining a Command's name and description.

protected function configure()
{
    $this
        ->setName('<fg=blue>acme:demo</fg=blue>')
        ->setDescription('<fg=blue>Acme Demo Command Example</fg=blue>');
}

Putting a fg style on the description seems to function fine, adding a color to the description, but adding a color to the name puts it at the top of the list, and looks a little janky.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ConsoleGood first issueIdeal for your first contribution! (some Symfony experience may be required)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0