Class: Grundler::Commands::Help

Inherits:
Object
  • Object
show all
Defined in:
lib/grundler/commands/help.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_cli, _arguments, _json_writer) ⇒ Help



4
5
6
# File 'lib/grundler/commands/help.rb', line 4

def initialize(_cli, _arguments, _json_writer)
  puts Help.help_text
end

Class Method Details

.help_textObject



8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/grundler/commands/help.rb', line 8

def self.help_text
  "\n    Usage: grundle <command>\n\n    grundle add      add package to project\n    grundle install  install all packages in lockfile\n    grundle update   update all packages in lockfile\n    grundle remove   remove a package from project\n    grundle help     display this help\n\n  HELP_TEXT\nend\n"