You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by antoinebrl <gi...@git.apache.org> on 2016/07/04 21:58:04 UTC

[GitHub] maven-shared pull request #14: [MSHARED-562] Color recognition based on colo...

GitHub user antoinebrl opened a pull request:

    https://github.com/apache/maven-shared/pull/14

    [MSHARED-562] Color recognition based on color related methods' name

    this modification take into account the background color and not only the foreground one. The distinction is made by starting color name with 'bg' og 'fg'. Example of `.mavenrc` : `-Dstyle.info=fgCyan,bgRed`
    The string part of enum color are no longer used. Instead, we use the name of methods related to color in the API. To accomplish this goal we use the trick `getClasse().getMethod(name).inovoke()`. Indeed all methods related to colors follow the same pattern : starting with 'bg' or 'fg' and having no arguments.
    Moreover, we can considere the bright modification (and other modification not yet implemented)
    example : `-Dstyle.info=fgBrightCyan`
    
    - Colors (case :warning: SENSITIVE)
      - `fgBlack`
      - ``
      - ``
      - ``
      - ``
      - ``
      - ``
    
    
    If the color format is not correct no color will be applied.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/antoinebrl/maven-shared trunk

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/maven-shared/pull/14.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #14
    
----
commit 3575e44451a240608f37f6b2076c46e1ccf4bd48
Author: Antoine Broyelle <an...@protonmail.com>
Date:   2016-07-04T21:17:47Z

    [MSHARED-562] Color recognition based on color related methods' name
    
    The string part of enum color are no longer used. Instead, we use the name
    of methods related to color (starting by 'bg' or 'fg').
    Thus, this modification take into account the foreground and the background
    color. example : -Dstyle.info=fgCyan,bgRed
    We can also considere the modificator bright (or other ones not yet implemented)
    example : -Dstyle.info=fgBrightCyan

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org