Module: Esse::CLI

Defined in:
lib/esse/cli.rb,
lib/esse/errors.rb,
lib/esse/cli/base.rb,
lib/esse/cli/index.rb,
lib/esse/cli/generate.rb,
lib/esse/cli/index/open.rb,
lib/esse/cli/index/close.rb,
lib/esse/cli/index/reset.rb,
lib/esse/cli/index/create.rb,
lib/esse/cli/index/delete.rb,
lib/esse/cli/index/import.rb,
lib/esse/cli/event_listener.rb,
lib/esse/cli/extensions_loader.rb,
lib/esse/cli/index/base_operation.rb,
lib/esse/cli/index/update_aliases.rb,
lib/esse/cli/index/update_mapping.rb,
lib/esse/cli/index/update_settings.rb

Defined Under Namespace

Modules: EventListener Classes: Base, Error, ExtensionsLoader, Generate, Index, InvalidOption, Root

Class Method Summary collapse

Class Method Details

.start(*args) ⇒ Object



14
15
16
# File 'lib/esse/cli.rb', line 14

def start(*args)
  Root.start(*args)
end

.with_friendly_errorsObject



18
19
20
21
22
23
# File 'lib/esse/cli.rb', line 18

def with_friendly_errors
  yield
rescue CLI::Error => e
  Output.print_error(e)
  exit(1)
end