-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
help: support multiple examples #1403
Conversation
Lots of changes since I touched this last! Felt good to add tests for it, though. |
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.
It looks good. I didn't test it myself, but I'm so glad you were able to update and add unit-tests for that change!
As written in my comments, I'm asking for in-line comment, because I wasn't able to really understand what each line does. It sounds good, but I feel like a few words could prevent confusion.
@Exirel We're turning the usual back-and-forth on its head! It's my turn to push new commits for you to 👍 before I squash them into the appropriate places in the PR's history. 😁 |
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.
LGTM
Should behave the same as before for modules that don't use the new parameter to @sopel.module.example() to declare multiple help examples. Updated admin.py module as a proof of concept. Going through other modules and updating them with multiple examples is a separate project. Output is still tweakable, but I'm happy enough without worrying about splitting lines just yet.
The loader didn't *have* tests when work on supporting multiple help examples started. Rebasing was fun because of that.
Test the new `user_help` argument, making sure examples are included or excluded properly based on its value.
Should behave the same as before for modules that don't use the new parameter to
@sopel.module.example()
to declare multiple help examples.Updated
admin.py
module as a proof of concept. Going through other modules and updating them with multiple examples is a separate project.Output is still tweakable, but I'm happy enough without worrying about splitting lines just yet.
This is WIP code I based off of #1303. Between the length of time between when I last looked at this and the present, and the fact that I had to manually rebase it on
master
, I'm definitely leaving it labeled WIP until I get back to working on it (probably after 6.6.0 releases).Because this changes the module API (a new argument to
@sopel.module.example()
is introduced), this will be a Sopel 7 project.