1
0
Fork 0
mirror of synced 2024-12-22 14:11:07 -05:00
dotbot/dotbot
Anish Athalye 8c2dc8cbc6 Make set of plugins available in context
This is useful for plugins like dotbot-if [1] that want to instantiate
their own Dispatcher. Previously, the Dispatcher found the set of
available plugins on its own, but as of
b5499c7dc5, this was changed so that
plugins are passed in.

Given that it has been over two years since this behavior has been
broken/changed, reverting to the previous behavior of having the
Dispatcher auto-load plugins might not be ideal, which is why this patch
instead makes the set of plugins available via the Context for plugins
to use.

This was reported in the Dotbot repository [2], and earlier in dotbot-if
[3]. dotbot-if is currently using a workaround [4] that was originally
implemented in dotbot-ifplatform [5].

[1]: https://github.com/wonderbeyond/dotbot-if
[2]: https://github.com/anishathalye/dotbot/issues/339
[3]: https://github.com/wonderbeyond/dotbot-if/issues/1
[4]: https://github.com/wonderbeyond/dotbot-if/pull/2
[5]: e35b5c0d71
2024-12-07 18:24:32 -05:00
..
messenger Drop support for Python 2 and Python < 3.6 2023-09-09 20:57:01 -04:00
plugins Drop support for Python 2 and Python < 3.6 2023-09-09 20:57:01 -04:00
util Improve Singleton metaclass 2024-12-07 18:24:18 -05:00
__init__.py Release 1.20.1 2023-09-10 10:37:02 -04:00
__main__.py Added support to run with python -m 2020-07-23 08:44:06 -07:00
cli.py Improve output of '--version' 2023-07-09 15:26:46 -04:00
config.py Drop support for Python 2 and Python < 3.6 2023-09-09 20:57:01 -04:00
context.py Make set of plugins available in context 2024-12-07 18:24:32 -05:00
dispatcher.py Make set of plugins available in context 2024-12-07 18:24:32 -05:00
plugin.py Drop support for Python 2 and Python < 3.6 2023-09-09 20:57:01 -04:00