Skip to content

Conversation

tleonhardt
Copy link
Member

@tleonhardt tleonhardt commented Aug 21, 2025

Add a simple example to demonstrate the colors available in cmd2.Color

This example actually surfaces what I consider to be a bug/edge-case in how the output methods are handling styling when soft_wrap is None or True.

Run the example and then run the taste_the_rainbow command with no arguments. All is good.

Then run the example and run taste_the_rainbow -b. That doesn't look right. Actually I changed it to set soft_wrap=False so it looks right, but before that it looked wrong.

@tleonhardt tleonhardt requested a review from kmvanbrunt as a code owner August 21, 2025 03:40
Copy link

codecov bot commented Aug 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.75%. Comparing base (cab433d) to head (0aad810).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1482      +/-   ##
==========================================
- Coverage   98.77%   98.75%   -0.03%     
==========================================
  Files          23       23              
  Lines        4884     4884              
==========================================
- Hits         4824     4823       -1     
- Misses         60       61       +1     
Flag Coverage Δ
unittests 98.75% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tleonhardt tleonhardt merged commit fca3b95 into main Aug 21, 2025
29 of 30 checks passed
@tleonhardt tleonhardt deleted the color_example branch August 21, 2025 13:04
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.

2 participants