Sha256: 820c3a729d2c4e677e784d01d86f5da5200fb8c071ad1cfcd09be596f6964be6
Contents?: true
Size: 1.18 KB
Versions: 5
Compression:
Stored size: 1.18 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 :bootstrap, default: '3', description: 'Bootstrap major version to use *VERY EXPERIMENTAL*', enum: ['3', '4'] 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
5 entries across 5 versions & 1 rubygems