Sha256: c2ef99f754f1278e2969a7ed767475bdee4118463a9a505376d758541e9c4cec

Contents?: true

Size: 328 Bytes

Versions: 8

Compression:

Stored size: 328 Bytes

Contents

require 'thor'
require 'thor_template/cli/help'

module ThorTemplate

  class CLI < Thor
    class_option :verbose, :type => :boolean
    class_option :noop, :type => :boolean

    desc "new NAME", "generates project based on thor template"
    def new(name)
      Generator.new(options.merge(name: name)).run
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
thor_template-0.0.8 lib/thor_template/cli.rb
thor_template-0.0.7 lib/thor_template/cli.rb
thor_template-0.0.6 lib/thor_template/cli.rb
thor_template-0.0.5 lib/thor_template/cli.rb
thor_template-0.0.4 lib/thor_template/cli.rb
thor_template-0.0.3 lib/thor_template/cli.rb
thor_template-0.0.2 lib/thor_template/cli.rb
thor_template-0.0.1 lib/thor_template/cli.rb