Class: Sumologic::CLI::Commands::SearchCommand

Inherits:
BaseCommand
  • Object
show all
Defined in:
lib/sumologic/cli/commands/search_command.rb

Overview

Handles the search command execution

Instance Attribute Summary

Attributes inherited from BaseCommand

#client, #options

Instance Method Summary collapse

Methods inherited from BaseCommand

#initialize

Constructor Details

This class inherits a constructor from Sumologic::CLI::Commands::BaseCommand

Instance Method Details

#executeObject



12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/sumologic/cli/commands/search_command.rb', line 12

def execute
  parse_time_options
  log_search_info
  results = perform_search

  display_results_summary(results)

  if options[:interactive]
    launch_interactive_mode(results)
  else
    output_search_results(results)
  end
end