-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make rasa cli have an option to turn off colors #9757
Comments
Hi there |
Please consider using |
This is a good name for an envvar. It is also used in coloredlogs to disable colors. Thanks, @virtualroot! https://coloredlogs.readthedocs.io/en/latest/api.html?highlight=no_color#environment-variables |
➤ Maxime Verger commented: 💡 Heads up! We're moving issues to Jira: https://rasa-open-source.atlassian.net/browse/OSS. From now on, this Jira board is the place where you can browse (without an account) and create issues (you'll need a free Jira account for that). This GitHub issue has already been migrated to Jira and will be closed on January 9th, 2023. Do not forget to subscribe to the corresponding Jira issue! ➡️ More information in the forum: https://forum.rasa.com/t/migration-of-rasa-oss-issues-to-jira/56569. |
What problem are you trying to solve?
I want to ran
rasa data validate
in my pipeline and print the results as a comment in a PR. I save the results in a file like this:rasa data validate --quiet 2>&1 | tee data-validate.log
The problem is that the ANSI code are saved as part of the output and it makes the results hard to read.
The workaround is to do this:
rasa data validate --quiet 2>&1 | tee data-validate.log |
sed 's/\x1b[[0-9;]*m//g' >
data-validate-no-color.log
What's your suggested solution?
rasa data validate --no-colors
Examples (if relevant)
No response
Is anything blocking this from being implemented? (if relevant)
No
Definition of Done
data-validate.log
fromrasa data validate --no-colors --quiet 2>&1 | tee data-validate.log
does not have ANSI color code.The text was updated successfully, but these errors were encountered: