Class: SpecForge::CLI::Run
Overview
Command for running SpecForge blueprints with filtering and output options
Executes workflow blueprints with support for file filtering, tag-based selection, and configurable verbosity levels for output detail.
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
-
#call ⇒ void
Executes the workflow blueprints with specified filters and options.
Methods inherited from Command
aliases, example, #initialize, option, register
Methods included from Actions
Constructor Details
This class inherits a constructor from SpecForge::CLI::Command
Instance Method Details
#call ⇒ void
This method returns an undefined value.
Executes the workflow blueprints with specified filters and options
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/spec_forge/cli/run.rb', line 72 def call base_path = determine_path = (.) = (.) verbosity_level = determine_verbosity_level blueprints, forge_hooks = Loader.load_blueprints(base_path:, tags:, skip_tags:) if blueprints.empty? puts "No blueprints found matching the criteria." exit(0) end Forge.ignite.run(blueprints, verbosity_level:, hooks: forge_hooks) end |