class RSpec::Core::Invocations::Bisect

@private

def bisect_formatter_for(argument)

def bisect_formatter_for(argument)
  return Formatters::BisectDebugFormatter if argument == "verbose"
  Formatters::BisectProgressFormatter
end

def call(options, _err, _out)

def call(options, _err, _out)
  RSpec::Support.require_rspec_core "bisect/coordinator"
  success = RSpec::Core::Bisect::Coordinator.bisect_with(
    options.args,
    RSpec.configuration,
    bisect_formatter_for(options.options[:bisect])
  )
  success ? 0 : 1
end