class Dry::CLI::CommandRegistry::Chain

@api private
@since 0.4.0
Callbacks chain

def append(&callback)

Other tags:
    Api: - private

Other tags:
    Since: - 0.4.0
def append(&callback)
  chain.add(callback)
end

def initialize

Other tags:
    Api: - private

Other tags:
    Since: - 0.4.0
def initialize
  @chain = Set.new
end

def run(context, **args)

Other tags:
    Api: - private

Other tags:
    Since: - 0.4.0
def run(context, **args)
  chain.each do |callback|
    context.instance_exec(**args, &callback)
  end
end