Class: GitCompound::Command::Procedure::Help

Inherits:
GitCompound::Command::Procedure show all
Defined in:
lib/git_compound/command/procedure/help.rb

Overview

Help command procedure

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.messageObject

rubocop:disable Metrics/AbcSize



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/git_compound/command/procedure/help.rb', line 16

def self.message
  <<-EOS
#{'GitCompound version'.bold.yellow} #{GitCompound::VERSION.bold}

Usage: #{'gitcompound'.bold.green}
  #{'[options]'.green} #{'command'.bold} #{'[manifest_file]'.green}

Commands:
  #{'build'.bold}
      builds project from manifest (or lockfile if present)

      If manifest is not specified it uses one of
      #{Manifest::FILENAMES.inspect}

  #{'update'.bold}
      updates project

  #{'check'.bold}
      detects circular depenencies, conflicting dependencies
      and checks for name contraints

  #{'show'.bold}
      prints structure of project

  #{'help'.bold}
      prints this help

Options:'
  #{'--verbose'.bold}
      prints verbose log info

  #{'--disable-colors'.bold}
      disable ANSI colors in output
  EOS
end

Instance Method Details

#executeObject



7
8
9
# File 'lib/git_compound/command/procedure/help.rb', line 7

def execute
  Logger.info(message)
end

#messageObject



11
12
13
# File 'lib/git_compound/command/procedure/help.rb', line 11

def message
  self.class.message
end