# frozen_string_literal: true require "cogger" require "dry-container" require "gitt" require "spek" module Milestoner # Provides a global gem container for injection into other objects. module Container extend Dry::Container::Mixin register(:configuration) { Configuration::Loader.call } register(:specification) { Spek::Loader.call "#{__dir__}/../../milestoner.gemspec" } register(:git) { Gitt::Repository.new } register(:kernel) { Kernel } register(:logger) { Cogger.new formatter: :emoji } end end