vzctl snapshot-* bash-completion for --id/--uuid

This patch implements autocompletion for existing snapshot IDs,
using snapshot-list functionality. It completes for all snapshot-*
commands except for snapshot (creation requires new unused ID).

A special case is snapshot-umount, it needs a snapshot ID which is
mounted.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed