Sha256: ee7e1e79b4d45eb0a3fa47b49f9aa80d999aec1b5339807a109d5961fc0a9d5e

Contents?: true

Size: 1.92 KB

Versions: 18

Compression:

Stored size: 1.92 KB

Contents

class Terraspace::CLI
  class New < Terraspace::Command
    long_desc Help.text("new/arg")
    Arg.options.each { |args| option(*args) }
    register(Arg, "arg", "arg NAME", "Generates new arg.")

    long_desc Help.text("new/git_hook")
    GitHook.cli_options.each { |args| option(*args) }
    register(GitHook, "git_hook", "git_hook", "Generates new git hook.")

    long_desc Help.text("new/shim")
    Shim.cli_options.each { |args| option(*args) }
    register(Shim, "shim", "shim", "Generates terraspace shim.")

    long_desc Help.text("new/helper")
    Helper.options.each { |args| option(*args) }
    register(Helper, "helper", "helper NAME", "Generates new helper.")

    long_desc Help.text("new/hook")
    Hook.options.each { |args| option(*args) }
    register(Hook, "hook", "hook NAME", "Generates new hook.")

    long_desc Help.text("new/module")
    Module.base_options.each { |args| option(*args) }
    Module.component_options.each { |args| option(*args) }
    register(Module, "module", "module NAME", "Generates new module.")

    long_desc Help.text("new/project")
    Project.base_options.each { |args| option(*args) }
    Project.project_options.each { |args| option(*args) }
    register(Project, "project", "project NAME", "Generates new project.")

    long_desc Help.text("new/plugin")
    Plugin.options.each { |args| option(*args) }
    register(Plugin, "plugin", "plugin NAME", "Generates plugin.")

    long_desc Help.text("new/stack")
    Stack.base_options.each { |args| option(*args) }
    Stack.component_options.each { |args| option(*args) }
    register(Stack, "stack", "stack NAME", "Generates new stack.")

    long_desc Help.text("new/test")
    Test.options.each { |args| option(*args) }
    register(Test, "test", "test NAME", "Generates new test.")

    long_desc Help.text("new/example")
    Example.options.each { |args| option(*args) }
    register(Example, "example", "example [NAME]", "Generates new example.")
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
terraspace-1.1.7 lib/terraspace/cli/new.rb
terraspace-1.1.6 lib/terraspace/cli/new.rb
terraspace-1.1.5 lib/terraspace/cli/new.rb
terraspace-1.1.4 lib/terraspace/cli/new.rb
terraspace-1.1.3 lib/terraspace/cli/new.rb
terraspace-1.1.2 lib/terraspace/cli/new.rb
terraspace-1.1.1 lib/terraspace/cli/new.rb
terraspace-1.1.0 lib/terraspace/cli/new.rb
terraspace-1.0.6 lib/terraspace/cli/new.rb
terraspace-1.0.5 lib/terraspace/cli/new.rb
terraspace-1.0.4 lib/terraspace/cli/new.rb
terraspace-1.0.3 lib/terraspace/cli/new.rb
terraspace-1.0.2 lib/terraspace/cli/new.rb
terraspace-1.0.1 lib/terraspace/cli/new.rb
terraspace-1.0.0 lib/terraspace/cli/new.rb
terraspace-0.7.2 lib/terraspace/cli/new.rb
terraspace-0.7.1 lib/terraspace/cli/new.rb
terraspace-0.7.0 lib/terraspace/cli/new.rb