Sha256: 75be1dd08cd73b55ebecc60cef5a7a242094fa8f893dfa6922e733abacc9945b

Contents?: true

Size: 343 Bytes

Versions: 1

Compression:

Stored size: 343 Bytes

Contents

require "<%= name %>/version"
require "thor"

module <%= name.split("_").map {|f| f.capitalize}.join %>
  class CLI < Thor
    map "-v" => :version

    desc "version", "print out the app version"
    def version()
      puts "#{self.class.name.split("::")[0]} #{<%= name.split("_").map {|f| f.capitalize}.join %>::VERSION}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
skelegem-0.1.0 lib/skelegem/templates/thor_cli/cli.tt