mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-21 13:34:06 +03:00
bash-completion: Run virsh/virt-admin in quiet mode
In some cases (e.g. when virt-admin connects to the default URI) some info message is printed onto stdout (using vshPrintExtra()). This hurts user experience, just consider: virt-admin<TAB><TAB> NOTE\:\ Connecting\ to\ default\ daemon.\ Specify\ daemon\ using\ -c\ \(e.g.\ virtqemud\:///system\) when no daemon is running. Suppress extra prints by passing '-q' in the bash-completion script. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
a0c45432e0
commit
6aa94ce105
@ -30,7 +30,7 @@ _@command@_complete()
|
|||||||
c=$((++c))
|
c=$((++c))
|
||||||
done
|
done
|
||||||
|
|
||||||
CMDLINE=( )
|
CMDLINE=( "-q" )
|
||||||
if [ -n "${RO}" ]; then
|
if [ -n "${RO}" ]; then
|
||||||
CMDLINE+=("-r")
|
CMDLINE+=("-r")
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user