class Leg::Commands::Help

Public Class Methods

name() click to toggle source
# File lib/leg/commands/help.rb, line 2
def self.name
  "help"
end
summary() click to toggle source
# File lib/leg/commands/help.rb, line 6
def self.summary
  "Print out this help"
end

Public Instance Methods

run() click to toggle source
# File lib/leg/commands/help.rb, line 10
def run
  puts "Usage: leg <command> [args...]"
  puts
  puts "Commands:"
  Leg::Commands::LIST.each do |cmd|
    puts "  #{cmd.name}"
    puts "      #{cmd.summary}"
  end
end