Class: SpecForge::CLI::Init

Inherits:
Command
  • Object
show all
Defined in:
lib/spec_forge/cli/init.rb

Overview

Command for initializing a new SpecForge project structure

Examples:

Creating a new SpecForge project

spec_forge init

Instance Attribute Summary

Attributes inherited from Command

#arguments, #options

Instance Method Summary collapse

Methods inherited from Command

aliases, example, #initialize, option, register

Methods included from Actions

included

Constructor Details

This class inherits a constructor from SpecForge::CLI::Command

Instance Method Details

#callObject

Creates the "spec_forge", "spec_forge/factories", and "spec_forge/blueprints" directories Also creates the "forge_helper.rb" initialization file



33
34
35
36
# File 'lib/spec_forge/cli/init.rb', line 33

def call
  initialize_forge
  initialize_openapi unless options.skip_openapi
end