Class: Omnitest::CLI::OmnitestCLI

Inherits:
CrosstaskCLI show all
Defined in:
lib/omnitest/cli.rb

Overview

rubocop:disable ClassLength

Constant Summary

Constants inherited from BaseCLI

BaseCLI::MAX_CONCURRENCY

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from CrosstaskCLI

#clone, #workflow

Methods inherited from BaseCLI

#initialize

Constructor Details

This class inherits a constructor from Omnitest::CLI::BaseCLI

Class Method Details

.filter_optionsObject



168
169
170
171
172
173
174
175
176
177
178
# File 'lib/omnitest/cli.rb', line 168

def self.filter_options
  method_option :failed,
                type: :boolean,
                desc: 'Only list tests that failed / passed'
  method_option :skipped,
                type: :boolean,
                desc: 'Only list tests that were skipped / executed'
  method_option :samples,
                type: :boolean,
                desc: 'Only list tests that have sample code / do not have sample code'
end

Instance Method Details

#list(*args) ⇒ Object



221
222
223
224
# File 'lib/omnitest/cli.rb', line 221

def list(*args)
  update_config!
  perform('list', 'list', args, options)
end

#show(*args) ⇒ Object



249
250
251
252
# File 'lib/omnitest/cli.rb', line 249

def show(*args)
  update_config!
  perform('show', 'show', args, options)
end

#test(*args) ⇒ Object



284
285
286
287
288
# File 'lib/omnitest/cli.rb', line 284

def test(*args)
  update_config!
  action_options = options.dup
  perform('test', 'test', args, action_options)
end

#versionObject



291
292
293
# File 'lib/omnitest/cli.rb', line 291

def version
  puts "Omnitest version #{Omnitest::VERSION}"
end