Class: Snaptoken::Commands::Help
Constant Summary
Constants inherited
from BaseCommand
BaseCommand::ERROR_MSG
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from BaseCommand
#current_or_latest_step, #current_step, inherited, #initialize, #latest_step, #needs!, #select_step, #step_path, #steps
Class Method Details
.name ⇒ Object
2
3
4
|
# File 'lib/snaptoken/commands/help.rb', line 2
def self.name
"help"
end
|
.summary ⇒ Object
6
7
8
|
# File 'lib/snaptoken/commands/help.rb', line 6
def self.summary
"Print out this help"
end
|
Instance Method Details
#run ⇒ Object
10
11
12
13
14
15
16
17
18
|
# File 'lib/snaptoken/commands/help.rb', line 10
def run
puts "Usage: leg <command> [args...]"
puts
puts "Commands:"
Snaptoken::Commands::LIST.each do |cmd|
puts " #{cmd.name}"
puts " #{cmd.summary}"
end
end
|