Sha256: 04917cce6a26b6d957670d0729ea7049b3f7045cd3d7830a487607c4c3c43145
Contents?: true
Size: 851 Bytes
Versions: 2
Compression:
Stored size: 851 Bytes
Contents
module Skellington class CLI < Thor desc 'version', 'Print the version' def version puts "skellington version #{VERSION}" end map %w(-v --version) => :version desc 'generate some_path', 'Generate a skeleton Sinatra app named SomePath at some_path' method_option :licensor, aliases: '-l', description: 'Name to insert into the license file' def generate wormname @g = Generator.new wormname @g.licensor = options[:licensor] @g.run end map %w(-g) => :generate desc 'postinstall', 'Show some helpful hints' def postinstall s = 'For some other things you might find useful, see this gist:' s << "\n\n" s << ' https://gist.github.com/pikesley/1789cab7b10f0d8765d4' puts s end map %w(-p) => :postinstall end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
skellington-0.7.5 | lib/skellington/cli.rb |
skellington-0.7.4 | lib/skellington/cli.rb |