Class: Dag::CLI::SubCommand

Inherits:
Base
  • Object
show all
Includes:
Utils::TimeFormat
Defined in:
lib/dag/cli/sub_command.rb

Direct Known Subclasses

Bucket, Cluster, Db, Job, Table

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Utils::TimeFormat

#time_format

Methods included from Utils::TerminalTable

#terminal_table

Class Method Details



6
7
8
# File 'lib/dag/cli/sub_command.rb', line 6

def self.banner(task, namespace = false, subcommand = true)
  super
end

Instance Method Details

#help(command = nil, subcommand = false) ⇒ Object



11
12
13
14
15
# File 'lib/dag/cli/sub_command.rb', line 11

def help(command = nil, subcommand = false)
  super
  cmd = self.class.name.split('::').last.downcase
  shell.say "Type 'dag #{cmd} help [COMMAND]' for more information on a specific command"
end