https://pantsbuild.org/ logo
#general
Title
# general
l

loud-laptop-17949

11/04/2021, 9:02 PM
Is there a way to get shell autocomplete working with pants?
h

hundreds-father-404

11/04/2021, 9:06 PM
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

happy-kitchen-89482

11/04/2021, 9:27 PM
@fast-nail-55400 did this for Pants v1 IIRC
f

fast-nail-55400

11/04/2021, 9:28 PM
which was deleted in v2 since APIs changed v1 -> v2
c

curved-television-6568

11/05/2021, 7:48 AM
If one were to look at porting this to v2, is mustache still the template engine of choice?
h

happy-kitchen-89482

11/05/2021, 12:50 PM
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

fast-nail-55400

11/05/2021, 1:07 PM
It was just whatever template library we were using in v1. I had no particular reason for the choice.
h

hundreds-father-404

11/05/2021, 4:09 PM
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

fast-nail-55400

11/05/2021, 6:26 PM
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
3 Views