Class: ConventionalChangelog::CLI
- Inherits:
-
Object
- Object
- ConventionalChangelog::CLI
- Defined in:
- lib/conventional_changelog/cli.rb
Class Method Summary collapse
Class Method Details
.execute(params) ⇒ Object
3 4 5 |
# File 'lib/conventional_changelog/cli.rb', line 3 def self.execute(params) Generator.new.generate! parse(params) end |
.parse(params) ⇒ Object
7 8 9 |
# File 'lib/conventional_changelog/cli.rb', line 7 def self.parse(params) Hash[*params.map { |param| param.split("=") }.map { |key, value| [key.to_sym, value] }.flatten] end |