Replies: 3 comments
-
|
Hi, I'd be happy to make changes that'll make it easier for you to use
Could you clarify what styles are you thinking of? perhaps give an example.
Could you please explain the use case for a custom console? The console in
The output of
Sure thing. You are more that welcome to discuss or contribute pull requests. I cannot promise that I can accept all your requests so a discussion before you spend time implementing a PR would be appreciated. |
Beta Was this translation helpful? Give feedback.
-
|
That all sounds great. I'll open a new issue for each proposal for discussion and provide more detail. You can use that discussion to determine if the proposal fits with your vision for the project and if so, I'm happy to work on pull requests which you can then review to ensure the implementation is satisfactory, or if you'd like changes to be made before merging (or rejecting all together, as you see fit). |
Beta Was this translation helpful? Give feedback.
-
|
@kotfu after #54 and #60, I feel there is something about your use case that I don't understand yet. Could you please state here why exactly you need to print the text produced by |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I'm one of the maintainers of cmd2, and we are exploring ways we can either incorporate rich into our library as a dependency, and/or make it easier for users of
cmd2to utilizerichin their own applications. Our issue capturing the discussion so far is at python-cmd2/cmd2#1251.In my early exploration of how best to do this in cmd2, I found this excellent project, which solves an important part of the problem for us. I have identified an initial list of changes/improvements to rich-argparse which would really benefit our work. Here's a brief list:
rich.consoleobjects, we would be interested in exploring changes to rich-argparse which could make it easier for a user/subclasser ofRichHelpFormatter()to provide their ownrich.consoleobject (which I get will be tricky or maybe impossible sinceargparse.ArgumentParserinstantiates this class.RichHelpFormatter.format_help()usesrich.console.capturewhich seems to create some formatting problems if you have "embedded"rich.consoleobjects, ie one console object processing the output offormat_help()while another console is capturing inside offormat_help(). Not sure yet if this is arich-argparseproblem or arichproblem.If you are open to collaboration/discussion/pull requests of our changes/enhancements, we would love to work with you. That would be our preferred approach if that works for you. If not, that's fine too, the MIT license for this project is compatible with the cmd2 license and we could fork your work to make it work better for our use case.
Are you open to collaboration, discussion, and pull requests from me?
Beta Was this translation helpful? Give feedback.
All reactions