Closed mcarifio closed 5 months ago
Hey @mcarifio
Could you go ahead and double-check whether this also happens on the newest version? v3.0.0 is already more than a year old. This has been a notorious problem with clap-generate and they released quite a few fixes.
3.2 works
./pueue --version
pueue 3.2.0
mcarifio@spider:~/opt/pueue/current/bin$p echo $BASH_VERSION
5.2.21(1)-release
mcarifio@spider:~/opt/pueue/current/bin$p ./pueue completions bash /tmp
mcarifio@spider:~/opt/pueue/current/bin$p source /tmp/pueue.bash
ty
Describe the bug
First, ty for pueue. I can't use nushell without it.
The generated completion script for bash generates a syntax error when sourced. Details in the reproduction section.
Steps to reproduce
Installed pueue on fedora 39 via copr and generated a completion script with
pueue completions bash /tmp/mcarifio-pueue-completions-lto/pueue.bash
then sourced the generated file:Debug logs (if relevant)
No response
Operating system
Fedora Linux 39 (Workstation Edition)
Pueue version
3.0.0
Additional context
I think you may need to quote each matching constant e.g.
' Pueue client,add')
. That's a guess.