Sha256: ac1ce1b45bed5da2b806afe8c277a588c2577088f418d900e945edea8b82cf3b

Contents?: true

Size: 2 KB

Versions: 30

Compression:

Stored size: 2 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 arg.")

    long_desc Help.text("new/ci")
    Ci.options.each { |cis| option(*cis) }
    register(Ci, "ci", "ci NAME", "Generates ci starter structure.")

    long_desc Help.text("new/git_hook")
    GitHook.cli_options.each { |args| option(*args) }
    register(GitHook, "git_hook", "git_hook", "Generates 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 helper.")

    long_desc Help.text("new/hook")
    Hook.options.each { |args| option(*args) }
    register(Hook, "hook", "hook NAME", "Generates 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 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 project.")

    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 stack.")

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

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

    desc "plugin SUBCOMMAND", "plugin subcommands"
    long_desc Help.text("new/plugin")
    subcommand "plugin", Plugin
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
terraspace-2.2.17 lib/terraspace/cli/new.rb
terraspace-2.2.16 lib/terraspace/cli/new.rb
terraspace-2.2.15 lib/terraspace/cli/new.rb
terraspace-2.2.14 lib/terraspace/cli/new.rb
terraspace-2.2.13 lib/terraspace/cli/new.rb
terraspace-2.2.12 lib/terraspace/cli/new.rb
terraspace-2.2.11 lib/terraspace/cli/new.rb
terraspace-2.2.10 lib/terraspace/cli/new.rb
terraspace-2.2.9 lib/terraspace/cli/new.rb
terraspace-2.2.8 lib/terraspace/cli/new.rb
terraspace-2.2.7 lib/terraspace/cli/new.rb
terraspace-2.2.6 lib/terraspace/cli/new.rb
terraspace-2.2.5 lib/terraspace/cli/new.rb
terraspace-2.2.4 lib/terraspace/cli/new.rb
terraspace-2.2.3 lib/terraspace/cli/new.rb
terraspace-2.2.2 lib/terraspace/cli/new.rb
terraspace-2.2.1 lib/terraspace/cli/new.rb
terraspace-2.2.0 lib/terraspace/cli/new.rb
terraspace-2.1.7 lib/terraspace/cli/new.rb
terraspace-2.1.6 lib/terraspace/cli/new.rb