]> xenbits.xensource.com Git - libvirt.git/commit
virsh: Parse # comments in batch mode
authorEric Blake <eblake@redhat.com>
Fri, 22 Mar 2019 19:02:39 +0000 (14:02 -0500)
committerEric Blake <eblake@redhat.com>
Mon, 25 Mar 2019 14:01:42 +0000 (09:01 -0500)
commit834f64ca4777f9fc20e0bed5e6cb7b59a76366fd
tree105fbd7a8f919fecfba6266aae61dcf623c07993
parent9884b2d185b8a30a9bef5aea93ae5c2597766713
virsh: Parse # comments in batch mode

Continuing from what I did in commit 4817dec0, now I want to write a
sequence that is self-documenting.  So I need comments :)

Now I can do something like:

$ virsh -c test:///default '
  # setup
  snapshot-create-as test s1
  snapshot-create-as test s2
  # check
  snapshot-list test --name
'

Note that this does NOT accept comments in argv mode, another patch
will tackle that.

(If I'm not careful, I might turn virsh into a full-fledged 'sh'
replacement? Here's hoping I don't go that far...)

Signed-off-by: Eric Blake <eblake@redhat.com>
Acked-by: Michal Privoznik <mprivozn@redhat.com>
tests/virshtest.c
tools/virsh.pod
tools/virt-admin.pod
tools/vsh.c