All Downloads are FREE. Search and download functionalities are using the official Maven repository.

a8.shared.app.Bootstrapper.scala Maven / Gradle / Ivy

There is a newer version: 1.0.0-20230212_1012_master
Show newest version
package a8.shared.app

import a8.shared.FileSystem.File
import a8.shared.json.JsonCodec
import a8.shared.json.ZJsonReader.ZJsonReaderOptions
import a8.shared.json.ast.JsVal
import zio.Task

import java.nio.file.Path
import scala.reflect.ClassTag

object Bootstrapper extends BootstrapperCompanionPlatform with BootstrapperCompanionImpl {
}

trait Bootstrapper {
  val logs: Iterable[String]
  val rootConfig: JsVal
  val bootstrapConfig: BootstrapConfig
  val directoriesSearched: Iterable[Path]
  val configFiles: Iterable[Path]
  def appConfig[A : JsonCodec](implicit jsonReaderOptions: ZJsonReaderOptions): Task[A] =
    rootConfig
      .toRootDoc("app")
      .value
      .asF[A]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy