Class: AppArchetype::CLI
- Inherits:
-
Thor
- Object
- Thor
- AppArchetype::CLI
- Defined in:
- lib/app_archetype/cli.rb
Overview
Command line interface helpers and actions
Instance Method Summary collapse
-
#delete ⇒ Object
Runs delete template command.
-
#find ⇒ Object
Runs find templates command.
-
#list ⇒ Object
Runs list templates command.
-
#new ⇒ Object
Runs new template commmand.
-
#open ⇒ Object
Runs open manifest command.
-
#path ⇒ Object
Runs print path command.
-
#render ⇒ Object
Runs render template command.
-
#variables ⇒ Object
Runs print template variables command.
-
#version ⇒ Object
Runs version command.
Instance Method Details
#delete ⇒ Object
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, ) cmd.run end |
#find ⇒ Object
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, ) cmd.run end |
#list ⇒ Object
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, ) cmd.run end |
#new ⇒ Object
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, ) cmd.run end |
#open ⇒ Object
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, ) cmd.run end |
#path ⇒ Object
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, ) cmd.run end |
#render ⇒ Object
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, .out, ) cmd.run end |
#variables ⇒ Object
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, ) cmd.run end |
#version ⇒ Object
Runs version command
17 18 19 20 |
# File 'lib/app_archetype/cli.rb', line 17 def version cmd = AppArchetype::Commands::PrintVersion.new() cmd.run end |