Michael Pasternak has uploaded a new change for review.

Change subject: cli: add basic scripting capabilities
......................................................................

cli: add basic scripting capabilities

this patch adds basic scripting capabilities,
added new option -f/--file that accept path
to the file with ovirt-shell commands,

also added new command called 'file'

HELP
===

[oVirt shell (connected)]# help file

        == Usage ==

        file FILE

        == Description ==

        This command reads commands from the FILE instead of stdin.

        == Examples ==

        file /home/test/script

EXAMPLE
======

[mpastern@lp /]#  ovirt-shell --connec -l ... -u ... -p ... -f 
/home/mpastern/script

or

[oVirt shell (connected)]# file /home/mpastern/script

SCRIPT
======

less /home/mpastern/script
-----_____----------------

list vms
list clusters
list datacenters
...

Change-Id: I08b7fd6d072e237e1dc95ed6f41fb57387c72dd5
Signed-off-by: Michael Pasternak <mpast...@redhat.com>
---
M src/ovirtcli/options.py
M src/ovirtcli/shell/engineshell.py
A src/ovirtcli/shell/filecmdshell.py
3 files changed, 145 insertions(+), 11 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-cli refs/changes/26/4426/1
--
To view, visit http://gerrit.ovirt.org/4426
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I08b7fd6d072e237e1dc95ed6f41fb57387c72dd5
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-cli
Gerrit-Branch: master
Gerrit-Owner: Michael Pasternak <mpast...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to