Skip to content
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

fix: detection of color support #259

Merged
merged 2 commits into from
Mar 6, 2023
Merged

Conversation

tasshi-me
Copy link
Member

@tasshi-me tasshi-me commented Mar 3, 2023

Why

#258

What

cli-kintone uses console.error (stderr) for log output.

According to the documentation of chalk, we have to use chalkStderr for stderr.

https://github.com/chalk/chalk#chalkstderr-and-supportscolorstderr

How to test

yarn install
yarn build

./bin/cli-kintone-macos record delete --app 123 > log.txt
# Check log.txt doesn't include color codes

Checklist

  • Read CONTRIBUTING.md
  • Updated documentation if it is required.
  • Added tests if it is required.
  • Passed yarn lint and yarn test on the root directory.

@tasshi-me tasshi-me requested a review from a team March 3, 2023 10:03
@tasshi-me tasshi-me self-assigned this Mar 3, 2023
@tasshi-me tasshi-me linked an issue Mar 3, 2023 that may be closed by this pull request
@tasshi-me tasshi-me requested review from hung-cybo and removed request for a team March 6, 2023 02:48
Copy link
Contributor

@hung-cybo hung-cybo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hung-cybo hung-cybo merged commit f5fb446 into main Mar 6, 2023
@hung-cybo hung-cybo deleted the fix/detection-of-color-support branch March 6, 2023 08:01
@tasshi-me tasshi-me mentioned this pull request Sep 14, 2023
4 tasks
This was referenced Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The detection of color support doesn't work correctly
2 participants