-
Enhancement
-
Resolution: Obsolete
-
Minor
-
2.4 ER1
There are couple of usability issues:
1) $ 3scale
3scale: no command given
> I expect that here complete help message
same for commands
2) $ 3scale copy
copy: no command given
> I expect that here complete help message for command "copy"
same for sub-commands
3) $ 3scale copy service
error: Missing argument source
> I expect that here complete help message for sub-command "copy service"
4) target_system_name parameter missing in list of required params in usage section:
USAGE 3scale copy service [opts] -s <src> -d <dst> <service_id>
5) better error messages, for example user doesn't know what was not found:
/usr/share/3scale_toolbox-0.5.0/vendor/bundle/ruby/2.3.0/gems/3scale-api-0.1.6/lib/3scale/api/client.rb:285:in `extract': unknown Can't handle #<Net::HTTPNotFound 404 Not Found readbody=true> (RuntimeError) from /usr/share/3scale_toolbox-0.5.0/vendor/bundle/ruby/2.3.0/gems/3scale-api-0.1.6/lib/3scale/api/client.rb:17:in `show_service' from /usr/share/3scale_toolbox-0.5.0/lib/3scale_toolbox/commands/copy_command/copy_service.rb:86:in `copy_service' from /usr/share/3scale_toolbox-0.5.0/lib/3scale_toolbox/commands/copy_command/copy_service.rb:33:in `run' from /usr/share/3scale_toolbox-0.5.0/lib/3scale_toolbox/commands/copy_command/copy_service.rb:21:in `block (2 levels) in command' from /usr/share/3scale_toolbox-0.5.0/vendor/bundle/ruby/2.3.0/gems/cri-2.15.2/lib/cri/command.rb:359:in `run_this' from /usr/share/3scale_toolbox-0.5.0/vendor/bundle/ruby/2.3.0/gems/cri-2.15.2/lib/cri/command.rb:296:in `run' from /usr/share/3scale_toolbox-0.5.0/vendor/bundle/ruby/2.3.0/gems/cri-2.15.2/lib/cri/command.rb:314:in `run' from /usr/share/3scale_toolbox-0.5.0/vendor/bundle/ruby/2.3.0/gems/cri-2.15.2/lib/cri/command.rb:314:in `run' from /usr/share/3scale_toolbox-0.5.0/lib/3scale_toolbox/cli.rb:20:in `run' from /usr/share/3scale_toolbox-0.5.0/exe/3scale:8:in `<top (required)>' from /usr/share/3scale_toolbox-0.5.0/bin/3scale:16:in `load' from /usr/share/3scale_toolbox-0.5.0/bin/3scale:16:in `<main>'
another example:
/opt/rh/rh-ruby23/root/usr/share/ruby/net/http.rb:882:in `rescue in block in connect': Failed to open TCP connection to https:443 (getaddrinfo: Name or service not known) (SocketError) from /opt/rh/rh-ruby23/root/usr/share/ruby/net/http.rb:879:in `block in connect' from /opt/rh/rh-ruby23/root/usr/share/ruby/timeout.rb:91:in `block in timeout' from /opt/rh/rh-ruby23/root/usr/share/ruby/timeout.rb:101:in `timeout' from /opt/rh/rh-ruby23/root/usr/share/ruby/net/http.rb:878:in `connect' from /opt/rh/rh-ruby23/root/usr/share/ruby/net/http.rb:863:in `do_start' from /opt/rh/rh-ruby23/root/usr/share/ruby/net/http.rb:852:in `start' from /opt/rh/rh-ruby23/root/usr/share/ruby/net/http.rb:1384:in `request' from /opt/rh/rh-ruby23/root/usr/share/ruby/net/http.rb:1407:in `send_entity' from /opt/rh/rh-ruby23/root/usr/share/ruby/net/http.rb:1195:in `post' from /usr/share/3scale_toolbox-0.5.0/vendor/bundle/ruby/2.3.0/gems/3scale-api-0.1.6/lib/3scale/api/http_client.rb:44:in `post' from /usr/share/3scale_toolbox-0.5.0/vendor/bundle/ruby/2.3.0/gems/3scale-api-0.1.6/lib/3scale/api/client.rb:100:in `create_service' from /usr/share/3scale_toolbox-0.5.0/lib/3scale_toolbox/commands/copy_command/copy_service.rb:87:in `copy_service' from /usr/share/3scale_toolbox-0.5.0/lib/3scale_toolbox/commands/copy_command/copy_service.rb:33:in `run' from /usr/share/3scale_toolbox-0.5.0/lib/3scale_toolbox/commands/copy_command/copy_service.rb:21:in `block (2 levels) in command' from /usr/share/3scale_toolbox-0.5.0/vendor/bundle/ruby/2.3.0/gems/cri-2.15.2/lib/cri/command.rb:359:in `run_this' from /usr/share/3scale_toolbox-0.5.0/vendor/bundle/ruby/2.3.0/gems/cri-2.15.2/lib/cri/command.rb:296:in `run' from /usr/share/3scale_toolbox-0.5.0/vendor/bundle/ruby/2.3.0/gems/cri-2.15.2/lib/cri/command.rb:314:in `run' from /usr/share/3scale_toolbox-0.5.0/vendor/bundle/ruby/2.3.0/gems/cri-2.15.2/lib/cri/command.rb:314:in `run' from /usr/share/3scale_toolbox-0.5.0/lib/3scale_toolbox/cli.rb:20:in `run' from /usr/share/3scale_toolbox-0.5.0/exe/3scale:8:in `<top (required)>' from /usr/share/3scale_toolbox-0.5.0/bin/3scale:16:in `load' from /usr/share/3scale_toolbox-0.5.0/bin/3scale:16:in `<main>'