Class: AppArchetype::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/app_archetype/cli.rb

Overview

Command line interface helpers and actions

Instance Method Summary collapse

Instance Method Details

#deleteObject

Runs delete template command



100
101
102
103
104
105
106
# File 'lib/app_archetype/cli.rb', line 100

def delete
  cmd = AppArchetype::Commands::DeleteTemplate.new(
    manager,
    options
  )
  cmd.run
end

#findObject

Runs find templates command



138
139
140
141
142
143
144
# File 'lib/app_archetype/cli.rb', line 138

def find
  cmd = AppArchetype::Commands::FindTemplates.new(
    manager,
    options
  )
  cmd.run
end

#listObject

Runs list templates command



29
30
31
32
33
34
35
# File 'lib/app_archetype/cli.rb', line 29

def list
  cmd = AppArchetype::Commands::ListTemplates.new(
    manager,
    options
  )
  cmd.run
end

#newObject

Runs new template commmand



81
82
83
84
85
86
87
# File 'lib/app_archetype/cli.rb', line 81

def new
  cmd = AppArchetype::Commands::NewTemplate.new(
    template_dir,
    options
  )
  cmd.run
end

#openObject

Runs open manifest command



61
62
63
64
65
66
67
68
# File 'lib/app_archetype/cli.rb', line 61

def open
  cmd = AppArchetype::Commands::OpenManifest.new(
    manager,
    editor,
    options
  )
  cmd.run
end

#pathObject

Runs print path command



42
43
44
45
46
47
48
# File 'lib/app_archetype/cli.rb', line 42

def path
  cmd = AppArchetype::Commands::PrintPath.new(
    template_dir,
    options
  )
  cmd.run
end

#renderObject

Runs render template command



171
172
173
174
175
176
177
178
# File 'lib/app_archetype/cli.rb', line 171

def render
  cmd = AppArchetype::Commands::RenderTemplate.new(
    manager,
    options.out,
    options
  )
  cmd.run
end

#variablesObject

Runs print template variables command



119
120
121
122
123
124
125
# File 'lib/app_archetype/cli.rb', line 119

def variables
  cmd = AppArchetype::Commands::PrintTemplateVariables.new(
    manager,
    options
  )
  cmd.run
end

#versionObject

Runs version command



17
18
19
20
# File 'lib/app_archetype/cli.rb', line 17

def version
  cmd = AppArchetype::Commands::PrintVersion.new(options)
  cmd.run
end