Sha256: 59c80b7da1fa462f4e87932522d5ef3eacb412a012d74a8de913b7a7bec3fa25
Contents?: true
Size: 680 Bytes
Versions: 3
Compression:
Stored size: 680 Bytes
Contents
# frozen_string_literal: true 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
skippy-0.5.2.a | app/commands/template.rb |
skippy-0.5.1.a | app/commands/template.rb |
skippy-0.5.0.a | app/commands/template.rb |