Class: Sumologic::CLI::Commands::BaseCommand

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

Overview

Base class for all CLI commands Provides common functionality like client creation, output handling, and formatting

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options, client) ⇒ BaseCommand

Returns a new instance of BaseCommand.



13
14
15
16
# File 'lib/sumologic/cli/commands/base_command.rb', line 13

def initialize(options, client)
  @options = options
  @client = client
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



11
12
13
# File 'lib/sumologic/cli/commands/base_command.rb', line 11

def client
  @client
end

#optionsObject (readonly)

Returns the value of attribute options.



11
12
13
# File 'lib/sumologic/cli/commands/base_command.rb', line 11

def options
  @options
end