bartholomew
bartholomew copied to clipboard
feature request: bart plugins
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 initialcontent/robots.md
andtemplates/robots.hbs
files. -
bart add-sitemap
to generate the initialcontent/sitemap.md
,scripts/sitemap.rhai
, andtemplates/sitemap.hbs
files. -
bart prod-check
to runbart check content/*
and a bunch of other sanity checks: linting, test-suite, lighthouse, etc. Could be paired with aprod-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.
Pics re spin hellooo
and bart hellooo
not triggering execution of the corresponding -hellooo
file.
Just one more item: an entirely relevant image...
😄
I should have included a pic showing the spin|bart-hellooo
files can be called & execute.