Class: HTTY::CLI::Commands::Quit
- Inherits:
-
HTTY::CLI::Command
- Object
- HTTY::CLI::Command
- HTTY::CLI::Commands::Quit
- Defined in:
- lib/htty/cli/commands/quit.rb
Overview
Encapsulates the quit command.
Constant Summary
Constants included from Display
Instance Attribute Summary
Attributes inherited from HTTY::CLI::Command
Class Method Summary collapse
-
.help ⇒ Object
Returns the help text for the quit command.
Instance Method Summary collapse
-
#perform ⇒ Object
Performs the quit command.
Methods inherited from HTTY::CLI::Command
#add_request_if_new, alias_for, aliases, build_for, category, command_line, command_line_arguments, complete_for?, help_extended, #initialize, notify_if_cookies_cleared, raw_name, sanitize_arguments, see_also_commands
Methods included from Display
#break, #format, #formatted_prompt_for, #indent, #logotype, #normal, #notice, #pluralize, #rescuing_from, #say, #say_goodbye, #say_header, #say_hello, #show_headers, #show_request, #show_response, #strong, #word_wrap, #word_wrap_indented
Constructor Details
This class inherits a constructor from HTTY::CLI::Command
Class Method Details
.help ⇒ Object
Returns the help text for the quit command.
7 8 9 |
# File 'lib/htty/cli/commands/quit.rb', line 7 def self.help 'Quits htty' end |
Instance Method Details
#perform ⇒ Object
Performs the quit command.
12 13 14 |
# File 'lib/htty/cli/commands/quit.rb', line 12 def perform throw :quit end |