Class: Reviewr::CLI::Help

Inherits:
Command
  • Object
show all
Defined in:
lib/reviewr/cli/help.rb

Instance Attribute Summary

Attributes inherited from Command

#arguments, #input, #output, #project

Instance Method Summary collapse

Methods inherited from Command

#call, #initialize, #prompt_for_user, #read_template

Constructor Details

This class inherits a constructor from Reviewr::CLI::Command

Instance Method Details

#executeObject



4
5
6
# File 'lib/reviewr/cli/help.rb', line 4

def execute
  usage
end

#request_helpObject



20
21
22
23
24
25
26
# File 'lib/reviewr/cli/help.rb', line 20

def request_help
  puts <<-HELP
usage: reviewr request <email>

Request a code review from <email>.
  HELP
end

#usageObject



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/reviewr/cli/help.rb', line 8

def usage
  puts <<-HELP
usage: reviewr COMMAND [ARGS]

reviewr commands
  request   Request a code review
  help      Find out more about a specific command

See 'reviewr help COMMAND' for more information on a specific command.
  HELP
end