class Discharger::SetupRunner::CommandFactory
def create_all_commands
def create_all_commands commands = [] # Create built-in commands from steps if config.steps.any? config.steps.each do |step| command = create_command(step) commands << command if command end else # If no steps specified, create all registered commands CommandRegistry.names.each do |name| command = create_command(name) commands << command if command end end # Create custom commands if config.respond_to?(:custom_steps) && config.custom_steps.any? require_relative "commands/custom_command" config.custom_steps.each do |step_config| command = Commands::CustomCommand.new(config, app_root, logger, step_config) commands << command end end commands end