class Omnitest::Psychic::List
Public Instance Methods
scripts()
click to toggle source
# File lib/omnitest/psychic/cli.rb, line 28 def scripts scripts = psychic.known_scripts.map do |script| [set_color(script.name, :bold), script.source_file] end print_table scripts end
tasks()
click to toggle source
# File lib/omnitest/psychic/cli.rb, line 38 def tasks # rubocop:disable Metrics/AbcSize psychic.known_tasks.map do |task| task_id = set_color(task, :bold) if options[:verbose] details = psychic.task(task) details = "\n#{details}".lines.join(' ') if details.lines.size > 1 say "#{task_id}: #{details}" else say task_id end end end