Sha256: 420a698aace2cc07768c8730410ea5f2121bd0cae42ef68281a7fd7f839c5919

Contents?: true

Size: 406 Bytes

Versions: 2

Compression:

Stored size: 406 Bytes

Contents

module ThorTemplate
  class CLI < Command
    class_option :verbose, :type => :boolean
    class_option :noop, :type => :boolean

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

    desc "version", "prints version"
    def version
      puts ThorTemplate::VERSION
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thor_template-2.2.1 lib/thor_template/cli.rb
thor_template-2.2.0 lib/thor_template/cli.rb