wide-midnight-78598
02/07/2023, 2:14 PM./pants help json-schema > "pantsbuild-$(./pants version).json"
Now, the only real reason I bring this up is because it ties into my shell completions thing that never really found a home, but fits alongside the schema creation. Uses help to generate a file as a result of processing said help: https://github.com/pantsbuild/pants/issues/16315
This whole thing ran into the problem of export
not being a great place as of today, because it's mostly for venvs, and bloating the API with a custom experimental-shell-completion
felt messy, and etc etc
I guess the question is, since we'd have 2 items that rely on help to generate some sort of custom output files, is there a better location or a consolidation for this?
If we end up as pants help json-schema
being the play, then I'd also put pants help completions
in there tooproud-dentist-22844
02/07/2023, 3:17 PM./pants help-export json-schema
./pants help-export completions
That is similar to ./pants help-advanced
wide-midnight-78598
02/07/2023, 3:33 PMhelp-export
Buuuuut, it is related to intellisense/auto-complete, so ... you know... "help-ish"happy-kitchen-89482
02/07/2023, 5:24 PM./pants help-completions
?./pants help json-schema
reads as "help for the json-schema subsystem or target type" which is not what this is...proud-dentist-22844
02/07/2023, 10:45 PM./pants export-pants-meta json-schema
./pants export-pants-meta completions
Riffing on ./pants export
wide-midnight-78598
02/07/2023, 10:52 PM./pants --completions
or ./pants export completions
- but I'll take anywhere to put it 🙂proud-dentist-22844
02/07/2023, 11:09 PMexport
makes more sense for both json-schema and completions than under help
.happy-kitchen-89482
02/08/2023, 1:21 AMexport
could work, but then how do we say "the thing I want exported is completions, not venvs"wide-midnight-78598
02/08/2023, 1:40 AMexport-codegen
goal.
To me, it seems that the export
goal is a reasonable place for an overhaul - but I think one of the problems here was that we didn't have access to help
from the non-builtin goals? Memory is a bit foggy on that part.