[pve-devel] Suggest hostnames in bash completion
Dietmar Maurer
dietmar at proxmox.com
Mon Jul 18 19:45:58 CEST 2016
> Is this something that's already available? My pvedaemon is not listening to
> any unix sockets.
Oh, It uses a local tcp port...
> Otherwise, we might as well have it listen on a specific socket, say
> /var/run/.pve_completion, with a simple protocol such as the example I made
> before. Then the various bash processes could communicate with it using a
> lightweight client such as 'nc' which would still be better than calling curl
> and parsing JSON.
but you will run into various other problems, because the CLI API is only
defined in the PVE/CLI/ classes, and it is
currently not possible to load more than one. So I guess your other suggestion
is simpler to implement.
More information about the pve-devel
mailing list