Class: GDK::Command::Help

Inherits:
BaseCommand show all
Defined in:
lib/gdk/command/help.rb

Instance Attribute Summary

Attributes inherited from BaseCommand

#stderr, #stdout

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseCommand

#config, #display_help_message, #help, #initialize, #print_help, #print_ready_message, #ready_messages

Constructor Details

This class inherits a constructor from GDK::Command::BaseCommand

Class Method Details

.validate_config?Boolean

Allow invalid gdk.yml.

Returns:

  • (Boolean)


9
10
11
# File 'lib/gdk/command/help.rb', line 9

def self.validate_config?
  false
end

Instance Method Details

#run(_ = []) ⇒ Object



13
14
15
16
17
18
# File 'lib/gdk/command/help.rb', line 13

def run(_ = [])
  GDK::Logo.print
  GDK::Output.puts(File.read(GDK.root.join('HELP')))

  true
end