-
Notifications
You must be signed in to change notification settings - Fork 240
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
Share some options between the CLI and magic. #350
Conversation
See discussion in #334 |
c74cccf
to
edae59c
Compare
Closing and reopening to trigger CI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry for the delay in the review. it looks good! just a couple comments
No needs to apologize, this is open source and users are not owed anything. I will look back into this when possible, Happy new year as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy new year! And thanks for your patience. Very wise words, I'll try to take them on ;)
I think a small simplification and this is ready to go. If it's not clear I'm happy to jump in and make the change, just let me know.
This refactor compute_render_options, to be shared between CLI and magic, it changes the last parameter from a file-like output to a boolean to control wether or not the output will support color and unicode. The only thing I don't really like is that we redefine the help text options. Co-authored-by: Joe Rickerby <[email protected]>
😄, thanks for yours.
It should be done, I now just let OptionsParseError bubble up, that seem to work if it's ok with you, so I don't even have to import it. |
Great! Looks good. |
This refactor compute_render_options, to be shared between CLI and magic.
Add a few of the CLI options to be available in the magic.
The only thing I don't really like is that we redefine the help text options.