Skip to content

[feature] Configurable CLI foreground colors for task names in moon.yml #2415

@k0pernikus

Description

@k0pernikus

Moon assigns random colors to tasks during execution. While acceptable, it frequently selects semantic colors like red or orange that indicate errors or warnings in terminal environments.

Image

In my setup, these colors are reserved strictly for failures. Seeing them assigned to standard task execution creates unnecessary cognitive friction.

Additionally, grouping related tasks by color would significantly improve readability. For example, :test-chrome and :test-firefox are logically related and should ideally share the same output color.

Ideally, this would be configurable directly within moon.yml:

  test-chrome:
    extends: base_browser_test
    cli:
      title-fg-color: cyan
    args:
      - --browser
      - chromium

Alternatively, it would suffice to provide an option to globally restrict the task runner's color pool, preventing semantic color collisions by explicitly blacklisting red, orange, and green from the randomizer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions