Class: Gerrit::Command::Help
Overview
Displays help documentation.
Instance Method Summary collapse
Methods inherited from Base
#execute_command, from_arguments, #initialize, #run
Methods included from Utils
camel_case, commit_hash?, human_time, map_in_parallel, snake_case
Constructor Details
This class inherits a constructor from Gerrit::Command::Base
Instance Method Details
#execute ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/gerrit/command/help.rb', line 4 def execute ui.print 'Usage: gerrit [command]' ui.newline ui.info 'Commands:' commands.each do |command| ui.print command end ui.newline ui.info "See #{Gerrit::REPO_URL}#usage for full documentation" end |