Sha256: 9df20790d23f0bb85078c9a02455c03ac635d0b7f3c951e88e1fd812f2c64d65
Contents?: true
Size: 645 Bytes
Versions: 1
Compression:
Stored size: 645 Bytes
Contents
class Template < Skippy::Command desc 'list', 'List all known templates' def list say 'Available templates:', :yellow templates = Skippy.app.templates if templates.empty? say ' No templates found' else templates.each { |template| say " #{template.basename}", :green } end end default_command(:list) desc 'install SOURCE', 'Install a new template' def install(source) raise Skippy::Error, 'Not implemented' end desc 'remove TEMPLATE', 'Remove an installed template' def remove(template_name) raise Skippy::Error, 'Not implemented' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
skippy-0.2.0.a | app/commands/template.rb |