Sha256: a08814b1d5c7bbcef9d18a7d2032839da76a969008a85fc9aaabdba8ac3a4465
Contents?: true
Size: 462 Bytes
Versions: 3
Compression:
Stored size: 462 Bytes
Contents
require "thor" require "thor/actions" module <%= config[:gem_class] %> class CLI < Thor include Thor::Actions # Initialize. def initialize args = [], options = {}, config = {} super end desc "-v, [version]", "Show version." map "-v" => :version def version say "<%= config[:gem_class] %> " + VERSION end desc "-h, [help]", "Show this message." def help task = nil say and super end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gemsmith-0.5.0 | lib/gemsmith/templates/lib/gem/cli.rb.tmp |
gemsmith-0.4.0 | lib/gemsmith/templates/lib/gem/cli.rb.tmp |
gemsmith-0.3.0 | lib/gemsmith/templates/lib/gem/cli.rb.tmp |