Module: CommandLine::SubCommands
- Defined in:
- lib/git/contest/command_line/sub_commands.rb,
lib/git/contest/command_line/sub_commands/init_command.rb,
lib/git/contest/command_line/sub_commands/list_command.rb,
lib/git/contest/command_line/sub_commands/start_command.rb,
lib/git/contest/command_line/sub_commands/config_command.rb,
lib/git/contest/command_line/sub_commands/finish_command.rb,
lib/git/contest/command_line/sub_commands/rebase_command.rb,
lib/git/contest/command_line/sub_commands/submit_command.rb
Defined Under Namespace
Classes: ConfigCommand, FinishCommand, InitCommand, ListCommand, RebaseCommand, StartCommand, SubmitCommand
Class Method Summary
collapse
Class Method Details
.all ⇒ Object
13
14
15
16
17
|
# File 'lib/git/contest/command_line/sub_commands.rb', line 13
def self.all
SubCommands.constants.select do |name|
/.+Command$/ === name
end
end
|
.usage ⇒ Object
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# 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
|