Class: Kuzya::Commands::Help
- Inherits:
-
Base
- Object
- Base
- Kuzya::Commands::Help
show all
- Defined in:
- lib/kuzya/commands/help.rb
Constant Summary
collapse
- SUPPORTED_COMMANDS =
[
Kuzya::Commands::Open,
Kuzya::Commands::Help,
Kuzya::Commands::Version,
Kuzya::Commands::Add,
Kuzya::Commands::Remove,
Kuzya::Commands::List
].freeze
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
args_without_command, call
Constructor Details
#initialize ⇒ Help
Returns a new instance of Help.
25
26
|
# File 'lib/kuzya/commands/help.rb', line 25
def initialize
end
|
Class Method Details
.info ⇒ Object
14
15
16
17
18
|
# File 'lib/kuzya/commands/help.rb', line 14
def info
<<-INFO
#{'help'.bold} - to read info about kuzya's commands run '#{'kuzya help'.italic}'
INFO
end
|
.prepare(_args, _config) ⇒ Object
20
21
22
|
# File 'lib/kuzya/commands/help.rb', line 20
def prepare(_args, _config)
end
|
Instance Method Details
#call ⇒ Object
28
29
30
31
32
33
34
|
# File 'lib/kuzya/commands/help.rb', line 28
def call
puts "#{Kuzya::SUMMARY}\n\n"
SUPPORTED_COMMANDS.each do |command|
puts "#{command.info.to_s}\n"
end
end
|