Sha256: 9190190233299e441859504593ae42992ef389408bf505da21f41cad7ec41bfb

Contents?: true

Size: 310 Bytes

Versions: 18

Compression:

Stored size: 310 Bytes

Contents

module <%= project_class_name %>
  class Sub < Command

    desc "goodbye NAME", "say goodbye to NAME"
    long_desc Help.text("sub:goodbye")
    option :from, desc: "from person"
    def goodbye(name="you")
      puts "from: #{options[:from]}" if options[:from]
      puts "Goodbye #{name}"
    end
  end
end

Version data entries

18 entries across 10 versions & 1 rubygems

Version Path
cli-template-4.0.2 lib/templates/colon_namespaces/lib/%underscored_name%/sub.rb.tt
cli-template-4.0.2 lib/templates/default/lib/%underscored_name%/sub.rb.tt
cli-template-4.0.1 lib/templates/colon_namespaces/lib/%underscored_name%/sub.rb.tt
cli-template-4.0.1 lib/templates/default/lib/%underscored_name%/sub.rb.tt
cli-template-4.0.0 lib/templates/default/lib/%underscored_name%/sub.rb.tt
cli-template-4.0.0 lib/templates/colon_namespaces/lib/%underscored_name%/sub.rb.tt
cli-template-3.5.1 lib/templates/colon_namespaces/lib/%underscored_name%/sub.rb.tt
cli-template-3.5.1 lib/templates/default/lib/%underscored_name%/sub.rb.tt
cli-template-3.5.0 lib/templates/default/lib/%underscored_name%/sub.rb.tt
cli-template-3.5.0 lib/templates/colon_namespaces/lib/%underscored_name%/sub.rb.tt
cli-template-3.4.0 lib/templates/default/lib/%underscored_name%/sub.rb.tt
cli-template-3.4.0 lib/templates/colon_namespaces/lib/%underscored_name%/sub.rb.tt
cli-template-3.3.0 lib/templates/default/lib/%underscored_name%/sub.rb.tt
cli-template-3.3.0 lib/templates/colon_namespaces/lib/%underscored_name%/sub.rb.tt
cli-template-3.2.0 lib/templates/colon_namespaces/lib/%underscored_name%/sub.rb.tt
cli-template-3.2.0 lib/templates/default/lib/%underscored_name%/sub.rb.tt
cli-template-3.1.0 lib/templates/default/lib/%underscored_name%/sub.rb.tt
cli-template-3.0.0 lib/templates/skeleton/lib/%underscored_name%/sub.rb.tt