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

Rolled back undocumented changes to printing functions introduced in 2.5.0. #1395

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

kmvanbrunt
Copy link
Member

Fixes #1390.

tleonhardt
tleonhardt previously approved these changes Dec 17, 2024
@@ -1211,124 +1211,55 @@ def visible_prompt(self) -> str:
return ansi.strip_style(self.prompt)

def print_to(
Copy link
Member

Choose a reason for hiding this comment

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

This is a lot cleaner here. Now print_to is doing one thing and doing it well. I'd recommend adding a brief docstring to explain the purpose.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added docstring.

@kmvanbrunt kmvanbrunt merged commit a8431f7 into master Dec 18, 2024
46 checks passed
@kmvanbrunt kmvanbrunt deleted the rollback_printing branch December 18, 2024 03:23
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.

cmd2 2.5.0 changed the method chain for output
2 participants