bitter-ability-32190
06/06/2022, 12:40 PM./script-runner devops docs generate
would invoke a shell script at /scripts/devops/docs/generate.sh
, in turn that script run ./pants run path/to/the/script.py
. Now we
can rename or move or change implementations without rewiring brains or other scripts.
I want to "bring this into Pants" a bit more, if nothing more than to ensure the Pants spec in the shell script is valid.
My thoughts are:
β’ Try and implement a linter for these scripts. Match probable pants commands and specs and then error if the spec isn't valid
β’ Bring the whole system into pants. Then the world is my oyster with a new goal, could be a single TOML file or spread or whatever. Lots more thought and plumbing though
Anyone else do something similar? Have ideas?curved-television-6568
06/06/2022, 3:44 PMproud-dentist-22844
06/06/2022, 4:11 PMproud-dentist-22844
06/06/2022, 4:12 PMcurved-television-6568
06/06/2022, 4:16 PMproud-dentist-22844
06/06/2022, 4:35 PMinvoke
directly via ./pants ...
Because there was significant impedance mismatch between pants' and invoke's help systems, and I really wanted the help to be exposed automatically.proud-dentist-22844
06/06/2022, 4:37 PMproud-dentist-22844
06/06/2022, 4:39 PMproud-dentist-22844
06/06/2022, 6:09 PMcurved-television-6568
06/06/2022, 6:51 PMpyinvoke
as a plugin, and tweaking ./pants
to expose scripts from the Pants venv I could use invoke without any bootstrapping scripts besides pants itself. And also cli aliases to make the syntax for invoke scripts nicer to run.proud-dentist-22844
06/06/2022, 7:06 PM./pants
at all so that upgrades are curl-simple. Oh and I forgot about CLI aliases. I don't remember if I looked into that.proud-dentist-22844
06/06/2022, 7:06 PMbitter-ability-32190
06/07/2022, 12:34 AMinvoke
was the name of a package π¬
https://www.pyinvoke.org/proud-dentist-22844
06/07/2022, 1:29 AMbitter-ability-32190
06/07/2022, 1:48 AM