Sha256: 98cf03e9699222625b7fe27377d76d0c25360b2a1bdfa84000a8e8e1ec76a4d8

Contents?: true

Size: 647 Bytes

Versions: 5

Compression:

Stored size: 647 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

5 entries across 5 versions & 1 rubygems

Version Path
skippy-0.4.3.a app/commands/template.rb
skippy-0.4.2.a app/commands/template.rb
skippy-0.4.1.a app/commands/template.rb
skippy-0.4.0.a app/commands/template.rb
skippy-0.3.0.a app/commands/template.rb