<commit_before>require 'thor'

module HappySeed
  class Cli < Thor
    desc "rails APPNAME", "Generate a new rails application"
    def rails( *args )
      seedrb = gem_file_path( "happy_seed.rb")
      system "rails new -m #{seedrb} #{args.join( " " )} --skip-turbolinks"
    end

    desc "plugin NAME", "Generate a new rails plugin"
    def plugin( *args )
      require 'generators/happy_seed/plugin/plugin_generator'
      HappySeed::Generators::PluginGenerator.start
    end

    desc "engine NAME", "Generate a new rails engine"
    def engine( *args )
      require 'generators/happy_seed/plugin/plugin_generator'
      ARGV << "--mountable"
      HappySeed::Generators::PluginGenerator.start
    end

    desc "static NAME", "Generate a new middleman static project"
    def static( name )
      require 'generators/happy_seed/static/static_generator'
      HappySeed::Generators::StaticGenerator.start
    end

    desc "static_blog NAME", "Generate a new middleman static blog project"
    def static_blog( name )
      require 'generators/happy_seed/static_blog/static_blog_generator'
      HappySeed::Generators::StaticBlogGenerator.start
    end

    private
    def gem_file_path( filename )
      spec = Gem::Specification.find_by_name("happy_seed")
      gem_root = spec.gem_dir

      File.join( gem_root, filename )
    end
  end
end<commit_msg>added overview to CLI help<commit_after>require 'thor'

module HappySeed
  class Cli < Thor
    desc "rails APPNAME", "Generate a new rails application"
    def rails( *args )
      seedrb = gem_file_path( "happy_seed.rb")
      system "rails new -m #{seedrb} #{args.join( " " )} --skip-turbolinks"
    end

    desc "plugin NAME", "Generate a new rails plugin"
    def plugin( *args )
      require 'generators/happy_seed/plugin/plugin_generator'
      HappySeed::Generators::PluginGenerator.start
    end

    desc "engine NAME", "Generate a new rails engine"
    def engine( *args )
      require 'generators/happy_seed/plugin/plugin_generator'
      ARGV << "--mountable"
      HappySeed::Generators::PluginGenerator.start
    end

    desc "static NAME", "Generate a new middleman static project"
    def static( name )
      require 'generators/happy_seed/static/static_generator'
      HappySeed::Generators::StaticGenerator.start
    end

    desc "static_blog NAME", "Generate a new middleman static blog project"
    def static_blog( name )
      require 'generators/happy_seed/static_blog/static_blog_generator'
      HappySeed::Generators::StaticBlogGenerator.start
    end

    desc "Quick Generator Refererence"
    def refererence
      puts File.read( File.expand_path( "happy_seed.txt", File.dirname( __FILE__ ) ) )
    end

    private
    def gem_file_path( filename )
      spec = Gem::Specification.find_by_name("happy_seed")
      gem_root = spec.gem_dir

      File.join( gem_root, filename )
    end
  end
end
{'fraction_non_alphanumeric': 0.09420289855072464, 'fraction_numerical': 0.0, 'mean_word_length': 3.2884615384615383, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, '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': '314794', 'n_tokens_mistral': 916, 'n_tokens_neox': 859, 'n_words': 232}