Is there a way to get shell autocomplete working w...
# general
l
Is there a way to get shell autocomplete working with pants?
h
Not yet, but we'd love it! https://github.com/pantsbuild/pants/issues/11187 And we're happy to support if you had any interest in trying to implement it
h
@fast-nail-55400 did this for Pants v1 IIRC
f
which was deleted in v2 since APIs changed v1 -> v2
c
If one were to look at porting this to v2, is mustache still the template engine of choice?
h
It is because it's super lightweight and we already use it, so it's an existing dependency. But also, possibly no template engine is needed? It might be fine to do this in code?
I don't know how much boilerplate there would be and whether it would be worth templating
👍 2
f
It was just whatever template library we were using in v1. I had no particular reason for the choice.
h
Actually it looks like Pystache is only used for
build-support
scripts. So strong preference imo to not use it if you can get away with it, per this thread https://pantsbuild.slack.com/archives/C0D7TNJHL/p1636128049289800
👍 1
f
Python v3 has f-strings so that will probably be sufficient. The autocomplete support was written when Python v2 was still what Pants used.
1