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

Refactored plugin hooks #60

Merged
merged 1 commit into from
Sep 2, 2023
Merged

Refactored plugin hooks #60

merged 1 commit into from
Sep 2, 2023

Conversation

gentlegiantJGC
Copy link
Member

Plugin hooks were previously global in the root module of the plugin.
If we wanted to change the hook format it would have been quite difficult.
This changes the plugin format so that there is one root attribute called plugin which is an instance of PluginV1.
If we want to change the hook format in the future we can implement another class while still supporting the old format.

Plugin hooks were previously global in the root module of the plugin.
If we wanted to change the hook format it would have been quite difficult.
This changes the plugin format so that there is one root attribute called `plugin` which is an instance of PluginV1.
If we want to change the hook format in the future we can implement another class while still supporting the old format.
@gentlegiantJGC gentlegiantJGC merged commit fcd7c0e into main Sep 2, 2023
7 checks passed
@gentlegiantJGC gentlegiantJGC deleted the refactor-plugins branch September 2, 2023 10:06
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.

1 participant