howdoi
howdoi copied to clipboard
Design plugin feature
Hi @juped & everyone, Eyitayo, Mwiza, and I have been working on a solution to decompose the howdoi codebase into howdoi.py, BasePlugin (base class for all plugins) and StackOverflowPlugin (a subclass of BasePlugin which is used as the default plugin for the user query if no plugins are specified).
We'd appreciate feedback on:
- The general code architecture
- Coding style and general improvements
- Suggestions on how users will be able to install third-party plugins (we thought about having a system that fetches plugins from your GitHub account). In general though, users will be able to manually add plugin files in the plugins folder
- Where the
cacheneeds to be stored. Should it be a global variable that all plugins can access? - Everything else that comes to your mind :)