Skip to content

Add support for no color output #90

@tobiashochguertel

Description

@tobiashochguertel

The Curst Framework, shows currently each time coloured output even in a non-interactive shells and when using with the env variable NO_COLOR=1 set. For the implementation of the env variable NO_COLOR=1 approach is a specification or documentation at https://no-color.org/ available, which I often implement in CLI's which I developed with yargs.

  • Optional add support for https://no-color.org/.
  • Optional add no-color output when a CLI based on Crust is executed in a non-interactive shell.
  • Optional add noColorPlugin() to Crust Framework, which can be added via .use(...) to a Crust CLI, and adds to the CLI a new option --no-colors

For non-breaking changes there might be the idea with creating a noColorPlugin() the best solution, which adds the support for https://no-color.org/, no color output in non-interactive shell, and the CLI option --no-colors to the project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions