Class: Heroku::Command::Help

Inherits:
Base
  • Object
show all
Includes:
Deprecated::Help
Defined in:
lib/heroku/command/help.rb

Overview

list commands and display help

Constant Summary collapse

PRIMARY_NAMESPACES =
%w( auth apps ps run addons config releases domains logs sharing )

Instance Attribute Summary

Attributes inherited from Base

#args, #options

Instance Method Summary collapse

Methods included from Deprecated::Help

included

Methods inherited from Base

#api, #app, #heroku, #initialize, namespace

Methods included from Helpers

#action, #ask, #confirm, #confirm_billing, #confirm_command, #create_git_remote, #deprecate, #display, #display_header, #display_object, #display_row, #display_table, #error, error_with_failure, error_with_failure=, extended, extended_into, #fail, #format_bytes, #format_date, #format_error, #format_with_bang, #get_terminal_environment, #git, #has_git?, #home_directory, #host_name, #hprint, #hputs, included, included_into, #json_decode, #json_encode, #launchy, #line_formatter, #longest, #output_with_bang, #quantify, #redisplay, #retry_on_exception, #run_command, #running_on_a_mac?, #running_on_windows?, #set_buffer, #shell, #spinner, #status, #string_distance, #styled_array, #styled_error, #styled_hash, #styled_header, #suggestion, #time_ago, #truncate, #with_tty

Constructor Details

This class inherits a constructor from Heroku::Command::Base

Instance Method Details

#indexObject

help [COMMAND]

list available commands or display help for a specific command

Examples:

$ pogo help Usage: heroku COMMAND [–app APP] [command-specific-options]

Primary help topics, type “heroku help TOPIC” for more details:

addons    #  manage addon resources
apps      #  manage apps (create, destroy)
...

Additional topics:

account      #  manage heroku account options
accounts     #  manage multiple heroku accounts
...

$ pogo help apps:create Usage: heroku apps:create [NAME]

create a new app

    --addons ADDONS        # a comma-delimited list of addons to install
-b, --buildpack BUILDPACK  # a buildpack url to use for this app
-r, --remote REMOTE        # the git remote to create, default "heroku"
-s, --stack STACK          # the stack on which to create the app


43
44
45
46
47
48
49
# File 'lib/heroku/command/help.rb', line 43

def index
  if command = args.shift
    help_for_command(command)
  else
    help_for_root
  end
end