<commit_before>require 'thor'

module Blammo
  class CLI < Thor
    include Thor::Actions

    def self.source_root
      File.dirname(__FILE__)
    end

    desc "generate [PATH]", %q(Generates a changelog.yml file (short-cut alias: "g"))
    map "g" => :generate
    def generate(path = "changelog.yml")
      path      = File.expand_path(path, destination_root)
      changelog = Changelog.new(path)
      changelog.refresh(destination_root)
      create_file(path, changelog.to_yaml)
    end

    desc "render [PATH]", %q(Renders the given changelog.yml file (short-cut alias: "r"))
    map "r" => :render
    def render(path = "changelog.yml")
      @changelog = Changelog.new(path)
      source     = "../../templates/changelog.html.erb"
      template(source, "changelog.html")
    end
  end
end<commit_msg>[ADDED] Force option to generate and render tasks.<commit_after>require 'thor'

module Blammo
  class CLI < Thor
    include Thor::Actions

    def self.source_root
      File.dirname(__FILE__)
    end

    desc "generate [PATH]", %q(Generates a changelog.yml file (short-cut alias: "g"))
    method_options :force => :boolean
    map "g" => :generate
    def generate(path = "changelog.yml")
      path      = File.expand_path(path, destination_root)
      changelog = Changelog.new(path)
      changelog.refresh(destination_root)
      create_file(path, changelog.to_yaml)
    end

    desc "render [PATH]", %q(Renders the given changelog.yml file (short-cut alias: "r"))
    method_options :force => :boolean
    map "r" => :render
    def render(path = "changelog.yml")
      @changelog = Changelog.new(path)
      source     = "../../templates/changelog.html.erb"
      template(source, "changelog.html")
    end
  end
end
{'fraction_non_alphanumeric': 0.12464101091326824, 'fraction_numerical': 0.0, 'mean_word_length': 3.023094688221709, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2437486', 'n_tokens_mistral': 587, 'n_tokens_neox': 569, 'n_words': 140}