bartholomew icon indicating copy to clipboard operation
bartholomew copied to clipboard

feature request: bart plugins

Open dimitrilw opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. This is not a problem report; just a pure feature request.

As a user of the tool, I would really like to be able to create plugins.

For example, after tinkering through a portion of the Bartholomew guide, I think it would be really helpful to have commands like:

  • bart add-robots-txt to generate the initial content/robots.md and templates/robots.hbs files.
  • bart add-sitemap to generate the initial content/sitemap.md, scripts/sitemap.rhai, and templates/sitemap.hbs files.
  • bart prod-check to run bart check content/* and a bunch of other sanity checks: linting, test-suite, lighthouse, etc. Could be paired with a prod-check.toml config file. Then this could be config'd as part of a CI/CD pipeline. ...just brainstorming out loud, so to say.

And I am entirely positive that others might come up with some really ingenious plugins to augment the bart ecosystem. While I'm thinking of generators & checkers, others gonna come in here inventing bart world-peace or something. 😂

Describe the solution you'd like A plugin system. Like what spin has implemented.

...or perhaps even along the lines of other dev-tools, like git. With git, I can add my own commands via having git-MY_COMMAND as an executable file found in my PATH. Then, if I do git MY_COMMAND, it executes the git-MY_COMMAND file (pic below). Neither spin nor bart currently support this style of plugin (pics below).

Describe alternatives you've considered I guess anybody could make some unofficial bartAssist stand-alone utility or something, but that just feels icky.

Additional context Pic of my git-find shell script existing as an executable that is in the PATH (i.e., which git-find finds the file) & a quick run via git find. This tool is just a personal "quick scan for git repos & remind me if I own it", which is a regular part of my workflow.

image

Pics re spin hellooo and bart hellooo not triggering execution of the corresponding -hellooo file.

image image

Just one more item: an entirely relevant image...

image

😄

dimitrilw avatar Sep 24 '23 20:09 dimitrilw

I should have included a pic showing the spin|bart-hellooo files can be called & execute.

image

dimitrilw avatar Sep 24 '23 20:09 dimitrilw