Sha256: ce675095a04da0999c5874dd9a9362a85902e3669fdab32d11d73aac7d9b902c

Contents?: true

Size: 378 Bytes

Versions: 10

Compression:

Stored size: 378 Bytes

Contents

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

    long_desc Help.text(:new)
    New.cli_options.each do |args|
      option *args
    end
    register(New, "new", "new NAME", "generates new CLI project")

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cli-template-4.0.2 lib/cli_template/cli.rb
cli-template-4.0.1 lib/cli_template/cli.rb
cli-template-4.0.0 lib/cli_template/cli.rb
cli-template-3.5.1 lib/cli-template/cli.rb
cli-template-3.5.0 lib/cli-template/cli.rb
cli-template-3.4.0 lib/cli-template/cli.rb
cli-template-3.3.0 lib/cli-template/cli.rb
cli-template-3.2.0 lib/cli-template/cli.rb
cli-template-3.1.0 lib/cli-template/cli.rb
cli-template-3.0.0 lib/cli-template/cli.rb