Class: HammerCLI::MainCommand

Inherits:
AbstractCommand show all
Defined in:
lib/hammer_cli/main.rb

Instance Attribute Summary

Attributes inherited from AbstractCommand

#context

Instance Method Summary collapse

Methods inherited from AbstractCommand

#adapter, add_option_details_section, add_option_schema, add_sets_help, build_options, #clean_up_context, command_extensions, #exception_handler, #execute, extend_help, extend_output_definition, extend_with, family_registry, #help, help, help_extension_blocks, inherited_command_extensions, #initialize, #interactive?, option, option_builder, option_families, option_family, output, #output, output_definition, #output_definition, #parent_command, #parse, #run, use_option, validate_options, #validate_options

Methods included from Subcommand

included

Constructor Details

This class inherits a constructor from HammerCLI::AbstractCommand

Instance Method Details

#option_csv=(csv) ⇒ Object



75
76
77
# File 'lib/hammer_cli/main.rb', line 75

def option_csv=(csv)
  context[:adapter] = :csv
end

#option_no_headers=(no_headers) ⇒ Object



79
80
81
# File 'lib/hammer_cli/main.rb', line 79

def option_no_headers=(no_headers)
  context[:no_headers] = :no_headers
end