Sha256: aaef69451ec4f1e20eb71465ccc59adc9e215c8b037514c5bdbc753afc75d688
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
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 app named SomePath at some_path' method_option :framework, default: 'sinatra', description: 'Framework to generate for', enum: [ 'sinatra', 'jekyll' ] method_option :licensor, aliases: '-l', description: 'Name to insert into the license file' def generate wormname @g = Generator.new wormname, options @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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
skellington-0.8.0 | lib/skellington/cli.rb |