Class: EacCli::OldConfigs::ReadEntryOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/eac_cli/old_configs/read_entry_options.rb

Constant Summary collapse

DEFAULT_VALUES =
{
  before_input: nil, bool: false, list: false, noecho: false, noenv: false, noinput: false,
  required: true, store: true, validator: nil
}.freeze

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



21
22
23
# File 'lib/eac_cli/old_configs/read_entry_options.rb', line 21

def [](key)
  values.fetch(key.to_sym)
end

#request_input_optionsObject



25
26
27
# File 'lib/eac_cli/old_configs/read_entry_options.rb', line 25

def request_input_options
  values.slice(:bool, :list, :noecho)
end