lib/stf/view/cli.rb in stf-client-0.3.0.rc8 vs lib/stf/view/cli.rb in stf-client-0.3.0.rc9

- old
+ new

@@ -33,10 +33,13 @@ help_now!('Authorization token is required') if global_options[:token].nil? Log::verbose(global_options[:verbose]) DI.init(global_options) + + help_now!('Valid STF url is required, e.g. http(s)://openstf.local') if !DI[:uri_validator].validate(global_options[:url]) + true end desc 'Search for a device available in STF and attach it to local adb server' command :connect do |c| c.desc 'Connect to all available devices' @@ -59,10 +62,10 @@ raise GLI::CustomExit.new('Connect failed', 1) end end end - desc 'Show avaliable keys for filtering' + desc 'Show available keys for filtering' command :keys do |c| c.action {puts DI[:get_keys_interactor].execute} end desc 'Show known values for the filtering key'