Sha256: 344373ffd289e46ffb2b3b1327339499dd9d303cc6c0d326189b41f5d7cd0a26

Contents?: true

Size: 645 Bytes

Versions: 2

Compression:

Stored size: 645 Bytes

Contents

require 'thor'
require 'date'
require 'yaml'

module Codelog
  class CLI < Thor
    desc 'setup', 'Generate the changelogs folder structure and the template.yml file'
    def setup
      Codelog::Command::Setup.run
    end

    desc 'new', 'Generate a file from the template for the unreleased changes'
    def new
      Codelog::Command::New.run
    end

    desc 'release [VERSION] <RELEASE_DATE>', 'Generate new release updating changelog'
    def release(version_number, release_date =
                Date.today.strftime(Codelog::Config.date_input_format))
      Codelog::Command::Release.run version_number, release_date
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
codelog-0.4.0 lib/codelog/cli.rb
codelog-0.3.1 lib/codelog/cli.rb