harness.zio.StdConfigs.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of harness-zio_3 Show documentation
Show all versions of harness-zio_3 Show documentation
Miscellaneous libraries/utilities for Scala.
package harness.zio
import harness.core.*
import harness.zio.json.*
import zio.json.*
object StdConfigs {
implicit val colorModeJsonCodec: JsonCodec[ColorMode] =
JsonCodec.fromHarnessStringEncoderAndDecoder
final case class Tolerance(
logTolerance: Logger.LogLevel,
)
object Tolerance {
implicit val jsonCodec: JsonCodec[Tolerance] = DeriveJsonCodec.gen
}
final case class ToleranceAndColorMode(
logTolerance: Logger.LogLevel,
colorMode: ColorMode,
)
object ToleranceAndColorMode {
implicit val jsonCodec: JsonCodec[ToleranceAndColorMode] = DeriveJsonCodec.gen
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy