Class: Expedite::Cli::Help

Inherits:
Object
  • Object
show all
Defined in:
lib/expedite/cli.rb

Instance Method Summary collapse

Instance Method Details

#run(args) ⇒ Object



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/expedite/cli.rb', line 12

def run(args)
  puts "Expected: <command>"
  puts
  puts "Commands:"

  cmds = Expedite::Cli.commands
  cmds.keys.sort!.each do |cmd|
    c = cmds[cmd].new
    puts "  #{cmd}: #{c.summary}"
  end
end

#summaryObject



24
25
26
# File 'lib/expedite/cli.rb', line 24

def summary
  'Prints usage documentation'
end