question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feature: Add support for `NO_COLOR` env var

See original GitHub issue

Latest spec:

  • Parse a NO_COLOR env var per instructions at https://no-color.org
  • Optionally, also accept --no-color at the CLI.
  • Pass this setting to logging configs.
  • Pass this setting to click.
  • Disable or remove color from rich exception logging, as needed.

Notes:

  • This is not to be a feature flag or a Meltano setting, and therefor will not be able to be set using meltano config.
  • This should have the equivalent affect as customizing logging.yaml. (Bug fixes in color=false implementation should solve for both methods of setting.)

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
aaronsteerscommented, Sep 1, 2022
  • From this thread in Slack, we should also try to ensure grayscale codes do not slip through:

https://meltano.slack.com/archives/C01TCRBBJD7/p1662065425046529?thread_ts=1661961091.406679&cid=C01TCRBBJD7

1reaction
aaronsteerscommented, Sep 1, 2022

As @pandemicsyn discussed today in a chat:

  • Precedence and config methods, the ways of settings are:

    • CLI flag (--no-color)
    • Environment vars (such as NO_COLOR)
    • Default/hidden log config (derived dynamically, will get from the above)
    • Log config (currently highest pri, last applied and overrides above)
      • TODO: take cue from above, if not set in yaml config.
  • We still have work to do on no-color compliance:

We are estimating 4 as size, adding to Engineering Assignments.

cc @tayloramurphy

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support NO_COLOR environment variable · Issue #74 - GitHub
So that all CLIs based on this library (would make a lot) becomes directly compatible with no-color manifesto, how about adding support for ......
Read more >
NO_COLOR: disabling ANSI color output in various Unix ...
Software Description Date/Version Supported alogview Android logcat Filter 2018‑10‑31 Ammonite Scala Scripting 2017‑07‑03 / 1.0.0 Ansible IT automation system 2021‑04‑26 / 2.11.0
Read more >
Environment Variables | Pulumi CLI
A list of different environment variables the Pulumi CLI supports. ... Set this environment variable to authenticate into the Pulumi Service backend and ......
Read more >
no_color - crates.io: Rust Package Registry
no_color is a rust library for detecting if the NO_COLOR environment variable is set. About. From no-color.org: An increasing number of command- ...
Read more >
Command: plan | Terraform - HashiCorp Developer
Note: In Terraform v0.15 and earlier, the -destroy option is supported only by the ... apply when setting input variables using environment variables....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found