Class: GFSM::Commands::Help

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

Instance Attribute Summary

Attributes inherited from BaseCommand

#stderr, #stdout

Instance Method Summary collapse

Methods inherited from BaseCommand

#initialize

Constructor Details

This class inherits a constructor from GFSM::Commands::BaseCommand

Instance Method Details

#run(_ = []) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/commands/help.rb', line 6

def run(_ = [])
  GFSM::Output.puts <<~HELP
  # GitLab Flavored Semantic Versioning

  Usage:

  gfsm <command> [<args>]

  Available commands:
  gfsm help               # Print this help text
  gfsm version            # Command used to print the current version or bump it based on the configuration
  gfsm changelog          # Command used to generate a changelog based on the commits since the latest release


  Version command
  #{GFSM::Commands::Version.help}
  Changelog command
  #{GFSM::Commands::Changelog.help}
  HELP

  true
end