ubicloud/spec/routes/api/cli/vm
Jeremy Evans 78f45d392f Improve error output for invalid CLI option arguments
For option arguments that must be members of an array, do the
check in the option parsing by providing an array of allowed
option arguments (e.g. vm create -s bad).

Emit better errors for options arguments that should be integers
(e.g. fw add-rule -s/-e), and for regular arguments that should
be integers (e.g. lb create src-port/dst-port).

Include help output in additional cases:

* invalid id formats with slashes
* invalid/duplicate/missing fields used when multiple fields
  separated by a comma is allowed
* invalid object references when using post subcommands
* invalid location for list -l option
2025-07-02 05:02:05 +09:00
..
create_spec.rb Have cli vm create command check public key format and provide specific error message 2025-04-26 05:34:41 +09:00
destroy_spec.rb Validate Vm#public_key when saving 2025-04-26 05:34:41 +09:00
list_spec.rb Improve error output for invalid CLI option arguments 2025-07-02 05:02:05 +09:00
restart_spec.rb Validate Vm#public_key when saving 2025-04-26 05:34:41 +09:00
scp_spec.rb Ensure cli response bodies end with newline 2025-02-21 09:32:10 -08:00
sftp_spec.rb Revert the backout of the CLI support 2025-02-11 16:09:46 -08:00
show_spec.rb Nest firewall rules when displaying 2025-02-19 10:25:42 -08:00
ssh_spec.rb Improve error output for invalid CLI option arguments 2025-07-02 05:02:05 +09:00