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