module CommandLine::SubCommands
Public Class Methods
all()
click to toggle source
# File lib/git/contest/command_line/sub_commands.rb, line 13 def self.all SubCommands.constants.select do |name| /.+Command$/ === name end end
usage()
click to toggle source
# File lib/git/contest/command_line/sub_commands.rb, line 19 def self.usage puts "usage: git contest <subcommand>" puts "" puts "Available subcommands are:" puts " %-12s Initialize a new git repo." % ["init"] puts " %-12s Start a new feature branch." % ["start"] puts " %-12s Finish a feature branch." % ["finish"] puts " %-12s Submit a solution." % ["submit"] puts " %-12s Show information (sites, drivers)." % ["list"] puts " %-12s Get/Set a config value." % ["config"] puts "" puts "Try 'git contest <subcommand> help' for details." end