Closed 66hades closed 4 years ago
I think I found where the problem is, in the bash script for lxd-client. I'm confident I can fix this over the weekend 😊
Cool, a PR would be quite welcome.
It should indeed be pretty straightforward to add that subcommand to scripts/bash/lxd-client
.
Issue description
When executing the command "lxc project ..." no function arguments appear when using tab complete, only the contents of the pwd.
For example, executing
lxc config
then hitting tab producesand executing
lxc restart
will produce a list of containers (only containers that are in the current project)I poked around trying to find a fix myself. This stackflow entry says using
compgen
orcomplete
, but a brief look around LXD source code didn't net me any results. Could someone point me in the direction where this is implemented in existing lxd functions?Steps to reproduce
lxc project
Results of steps
Required information
Operating System: Ubuntu 18.04.4 LTS
Kernel: Linux 5.0.0-37-generic
Architecture: x86-64
The output of "lxc info"
Information to attach
dmesg
)lxc info NAME --show-log
)lxc config show NAME --expanded
)lxc monitor
while reproducing the issue)