Sha256: c6caf89beae0ba6305b48728b2d533036ced067a76fdd63d1db9311d4ee68b17

Contents?: true

Size: 520 Bytes

Versions: 6

Compression:

Stored size: 520 Bytes

Contents

module <%= config.gem_class %>
  class Cli
    include Commander::Methods

    def run
      program :name, "<%= config.human_gem_name %>"
      program :version, <%= config.gem_class %>::VERSION
      program :description, "<%= config.description.blank? ? "TODO: add description" : config.description %>"

      command("hello") do |c|
        c.syntax = "<%= config.gem_name %> hello"
        c.description = "Just a command example"
        c.action { puts "Hello Platanus!" }
      end

      run!
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gemaker-1.0.0 lib/gemaker/templates/cli.rb.erb
gemaker-0.6.0 lib/gemaker/templates/cli.rb.erb
gemaker-0.5.0 lib/gemaker/templates/cli.rb.erb
gemaker-0.4.0 lib/gemaker/templates/cli.rb.erb
gemaker-0.3.0 lib/gemaker/templates/cli.rb.erb
gemaker-0.2.0 lib/gemaker/templates/cli.rb.erb