Skip to content

Conversation

kmvanbrunt
Copy link
Member

@kmvanbrunt kmvanbrunt commented Aug 13, 2025

Closes #1417

…mpletion.

Added a StrEnum for all cmd2 text styles.
Copy link

codecov bot commented Aug 13, 2025

Codecov Report

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

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1475   +/-   ##
=======================================
  Coverage   98.74%   98.74%           
=======================================
  Files          21       21           
  Lines        5874     5883    +9     
=======================================
+ Hits         5800     5809    +9     
  Misses         74       74           
Flag Coverage Δ
unittests 98.74% <100.00%> (+<0.01%) ⬆️

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.

Copy link
Member

@tleonhardt tleonhardt left a comment

Choose a reason for hiding this comment

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

Overall looks good.

Need to fix failing transcript unit tests on Windows

Customizability of default styles is highly desirable.

cmd2_styles.update(RichHelpFormatter.styles.copy())

if styles is not None:
cmd2_styles.update(styles)
Copy link
Member

Choose a reason for hiding this comment

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

We should add a unit test where styles is not None and verify expected behavior.

Copy link
Member Author

Choose a reason for hiding this comment

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

Once I get to the task to set a theme, I will write unit tests for this.

tleonhardt
tleonhardt previously approved these changes Aug 13, 2025
Copy link
Member

@tleonhardt tleonhardt left a comment

Choose a reason for hiding this comment

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

LGTM

@kmvanbrunt kmvanbrunt merged commit 8e0a1a2 into main Aug 13, 2025
30 checks passed
@kmvanbrunt kmvanbrunt deleted the rich_conversion branch August 13, 2025 17:25
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.

settables: calculate the maximum width of the "Value" column
2 participants