maven-help-plugin icon indicating copy to clipboard operation
maven-help-plugin copied to clipboard

[MPH-122] add help:color-style goal to describe styles color

Open jira-importer opened this issue 8 years ago • 2 comments

Hervé Boutemy opened MPH-122 and commented

as discussed on users@maven ML: https://lists.apache.org/thread.html/09fa512d289a02c3c7d5262cbeff3285fe36e7eaa935528de69191ac@%3Cusers.maven.apache.org%3E

I vote for a help plugin goal, like help:color-style. It could show a brief summary and how to customize, list available settings, and print active settings.


Affects: 2.2

Issue Links:

  • MSHARED-687 Programmatic read-only access to Color API ("requires")

0 votes, 5 watchers

jira-importer avatar Apr 25 '17 18:04 jira-importer

Guillaume Boué commented

There needs to be a method in Maven Shared Utils to display all possible colors. What about having List<String> getAvailableColorNames() in MessageUtils so that the plugin does not depend on Jansi?

org.apache.maven.shared.utils.logging.Style contains the current color style but it is package-private because Jansi specific. I think the Jansi specific parts can be refactored into AnsiMessageBuilder so that the Style enum can be made public and available to the Help Plugin.

jira-importer avatar Jul 04 '17 21:07 jira-importer

Robert Scholte commented

I'll work on a proposal. Goal is to provide a list of colors and a list of available system properties, so people can provide system properties like -Dstyle.info=<value> or -Dstyle.info=<value>,<value>. The specific MessageBuilder is responsible for the available color information, so now that's only AnsiMessageBuilder

jira-importer avatar May 30 '19 09:05 jira-importer