Class: Sumologic::CLI::Commands::BaseCommand
- Inherits:
-
Object
- Object
- Sumologic::CLI::Commands::BaseCommand
- 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
Direct Known Subclasses
DiscoverSourceMetadataCommand, ExportContentCommand, GetContentCommand, GetDashboardCommand, GetLookupCommand, GetMonitorCommand, ListAppsCommand, ListCollectorsCommand, ListDashboardsCommand, ListFieldsCommand, ListFoldersCommand, ListHealthEventsCommand, ListMonitorsCommand, ListSourcesCommand, SearchCommand
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options, client) ⇒ BaseCommand
constructor
A new instance of BaseCommand.
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(, client) = @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
11 12 13 |
# File 'lib/sumologic/cli/commands/base_command.rb', line 11 def client @client end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
11 12 13 |
# File 'lib/sumologic/cli/commands/base_command.rb', line 11 def end |