Class: HTTY::CLI::Commands::HttpGet

Inherits:
HTTY::CLI::Command show all
Includes:
HTTPMethodCommand
Defined in:
lib/htty/cli/commands/http_get.rb

Overview

Encapsulates the http-get command.

Constant Summary

Constant Summary

Constants included from Display

Display::FORMATS

Instance Attribute Summary

Attributes inherited from HTTY::CLI::Command

#arguments, #session

Class Method Summary (collapse)

Methods included from HTTPMethodCommand

included, #perform

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

Methods inherited from HTTY::CLI::Command

#add_request_if_new, alias_for, aliases, build_for, category, command_line, command_line_arguments, complete_for?, #initialize, notify_if_cookies_cleared, #perform, raw_name, sanitize_arguments

Constructor Details

This class inherits a constructor from HTTY::CLI::Command

Class Method Details

+ (Object) help

Returns the help text for the http-get command.



21
22
23
# File 'lib/htty/cli/commands/http_get.rb', line 21

def self.help
  'Issues an HTTP GET using the current request'
end

+ (Object) help_extended

Returns the extended help text for the http-get command.



26
27
28
29
30
31
# File 'lib/htty/cli/commands/http_get.rb', line 26

def self.help_extended
  "Issues an HTTP GET using the current request.\n"                        +
  "\n"                                                                     +
  'Any request body you may set is ignored (i.e., it is not sent as part ' +
  'of the request).'
end

+ (Object) see_also_commands

Returns related command classes for the http-get command.



34
35
36
37
38
39
40
# File 'lib/htty/cli/commands/http_get.rb', line 34

def self.see_also_commands
  [HTTY::CLI::Commands::Follow,
   HTTY::CLI::Commands::HttpPatch,
   HTTY::CLI::Commands::HttpPost,
   HTTY::CLI::Commands::HttpPut,
   HTTY::CLI::Commands::HttpDelete]
end