Instead of parsing file names and basing the commands on those, store the commands in files, so that you can edit files to change which commands are run. This makes the file names for the golden files match the command being run, other than replacing / with _. To add commands for golden files, edit the files in the spec/routes/api/cli/golden-file-commands folder.
8 lines
506 B
Plaintext
8 lines
506 B
Plaintext
Usage: ubi vm list [options]
|
|
Usage: ubi vm location/vm-name create [options] public_key
|
|
Usage: ubi vm location/(vm-name|_vm-ubid) destroy [options]
|
|
Usage: ubi vm location/(vm-name|_vm-ubid) [options] scp [scp-options] (local-path :remote-path | :remote-path local-path)
|
|
Usage: ubi vm location/(vm-name|_vm-ubid) [options] sftp [sftp-options]
|
|
Usage: ubi vm location/(vm-name|_vm-ubid) show [options]
|
|
Usage: ubi vm location/(vm-name|_vm-ubid) [options] ssh [ssh-options --] [remote-cmd [remote-cmd-arg ...]]
|