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

Returns a new instance of 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
  <<~HELP_TEXT

    Usage: grundle <command>

    grundle add      add package to project
    grundle install  install all packages in lockfile
    grundle update   update all packages in lockfile
    grundle remove   remove a package from project
    grundle help     display this help

  HELP_TEXT
end