Class: ResponseMate::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/response_mate/cli.rb

Overview

Entry point of the command-line interface

Instance Method Summary collapse

Instance Method Details

#exportObject



56
57
58
# File 'lib/response_mate/cli.rb', line 56

def export
  ResponseMate::Commands::Export.new(args, options).run
end

#inspect(*keys) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument



24
25
26
# File 'lib/response_mate/cli.rb', line 24

def inspect(*keys) # rubocop:disable Lint/UnusedMethodArgument
  ResponseMate::Commands::Inspect.new(args, options).run
end

#listObject

rubocop:disable Lint/UnusedMethodArgument



35
36
37
# File 'lib/response_mate/cli.rb', line 35

def list # rubocop:disable Lint/UnusedMethodArgument
  ResponseMate::Commands::List.new(args, options).run
end

#recordObject



15
16
17
# File 'lib/response_mate/cli.rb', line 15

def record
  ResponseMate::Commands::Record.new(args, options).run
end

#versionObject



40
41
42
# File 'lib/response_mate/cli.rb', line 40

def version
  puts "response_mate version #{ResponseMate::VERSION}"
end