Class: Spacialdb::Command::Help

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

Overview

list commands and display help

Constant Summary collapse

PRIMARY_NAMESPACES =
%w( auth db layers )

Instance Attribute Summary

Attributes inherited from Base

#args, #options

Instance Method Summary collapse

Methods included from Deprecated::Help

included

Methods inherited from Base

#initialize, namespace, #spacialdb

Methods included from Helpers

#ask, #confirm_command, #display, #echo_off, #echo_on, #error, #home_directory, #json_decode, #json_encode, #longest, #redisplay

Constructor Details

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

Instance Method Details

#indexObject

help [COMMAND]

list available commands or display help for a specific command



16
17
18
19
20
21
22
# File 'lib/spacialdb/command/help.rb', line 16

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