Class: ResponseMate::CLI
- Inherits:
-
Thor
- Object
- Thor
- ResponseMate::CLI
- Defined in:
- lib/response_mate/cli.rb
Overview
Entry point of the command-line interface
Instance Method Summary collapse
- #export ⇒ Object
-
#inspect(*keys) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
-
#list ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
- #record ⇒ Object
- #version ⇒ Object
Instance Method Details
#export ⇒ Object
56 57 58 |
# File 'lib/response_mate/cli.rb', line 56 def export ResponseMate::Commands::Export.new(args, ).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, ).run end |
#list ⇒ Object
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, ).run end |
#record ⇒ Object
15 16 17 |
# File 'lib/response_mate/cli.rb', line 15 def record ResponseMate::Commands::Record.new(args, ).run end |
#version ⇒ Object
40 41 42 |
# File 'lib/response_mate/cli.rb', line 40 def version puts "response_mate version #{ResponseMate::VERSION}" end |