Class: Blockspring::CLI::Command::Help

Inherits:
Base
  • Object
show all
Defined in:
lib/blockspring/cli/command/help.rb

Overview

Get information about commands

Constant Summary collapse

PRIMARY_NAMESPACES =
%w( auth block run )

Instance Attribute Summary

Attributes inherited from Base

#args, #options

Instance Method Summary collapse

Methods inherited from Base

#initialize, namespace

Methods included from Helpers

#display, #error, error_with_failure, error_with_failure=, #format_with_bang, #home_directory, #longest, #output_with_bang, #running_on_a_mac?, #running_on_windows?

Constructor Details

This class inherits a constructor from Blockspring::CLI::Command::Base

Instance Method Details

#indexObject



44
45
46
47
48
49
50
# File 'lib/blockspring/cli/command/help.rb', line 44

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