slipstream / SlipStreamClient

SlipStream Python client
Apache License 2.0
1 stars 4 forks source link

allow ss-* VM commands to run w/o context file #338

Closed konstan closed 7 years ago

konstan commented 7 years ago

For the commands

ss-get
ss-get-all
ss-set
ss-abort
ss-cancel-abort
ss-display

add -u, -p, --run, --cookie, --endpoint CLI parameters.

Example:

$ ./ss-get -h
Usage: usage: ss-get [options] <key>

<key>    Key (i.e. runtime parameter) from which to retrieve the value

Options:
  -h, --help            show this help message and exit
  -v, --verbose         verbose level. Add more to get more details.
  --timeout=SECONDS     timeout in seconds for blocking call
  --ignore-abort        by default, if the run abort flag is set, any
                        call will return with an error. With this option
                        values                                can be queried
                        even if the abort flag is raised
  --noblock             return immediately even if the parameter has no value
  --run=DIID            Run UUID.
  -u USERNAME, --username=USERNAME
                        SlipStream username or $SLIPSTREAM_USERNAME
  -p PASSWORD, --password=PASSWORD
                        SlipStream password or $SLIPSTREAM_PASSWORD
  --cookie=FILE         SlipStream cookie. Default:
                        /Users/konstan/.slipstream/cookies.txt
  --endpoint=URL        SlipStream server endpoint. Default:
                        $SLIPSTREAM_ENDPOINT or https://nuv.la
$