howdoi icon indicating copy to clipboard operation
howdoi copied to clipboard

Design plugin feature

Open tayoogunbiyi opened this issue 5 years ago • 1 comments

tayoogunbiyi avatar Jun 24 '20 15:06 tayoogunbiyi

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 cache needs to be stored. Should it be a global variable that all plugins can access?
  • Everything else that comes to your mind :)

csr avatar Jun 24 '20 16:06 csr