wide-midnight-78598
08/30/2022, 1:40 PMexport
should work, and then see if we can build an option to generate completions, as well as a venv. I'm on the fence about whether this is better or worse, but using export
(or any goal) feels more like... dunno... I always associate those to targets and production code (and `export`ing a dev env to help out), while completions are related to the Pants tooling itself.
So what about doing something more like --version
? ./pants --completions
?wide-midnight-78598
08/30/2022, 1:40 PMwide-midnight-78598
08/30/2022, 1:42 PM./pants
would somehow place completions somewhere that could be sourced semi-automatically, buuuut, it might move us forwardbitter-ability-32190
08/30/2022, 2:51 PMwide-midnight-78598
08/30/2022, 3:04 PMbusy-vase-39202
08/31/2022, 7:00 PMbusy-vase-39202
08/31/2022, 7:01 PMwitty-crayon-22786
08/31/2022, 7:01 PMSo what about doing something more likethis would work too probably. goals don’t have access to the help APIs in general, but “BuiltinGoals” do. so a?--version
?./pants --completions
./pants completions
would be possible.witty-crayon-22786
08/31/2022, 7:02 PMwide-midnight-78598
08/31/2022, 9:16 PMexport
+ option was a nice thing...
I can proto a builtin, and then we can decide if it makes sense?