zio.system

package zio.system

Type members

Classlikes

object System extends Serializable

Types

Value members

Concrete methods

def env(variable: => String): ZIO[System, SecurityException, Option[String]]

Retrieves the value of an environment variable.

Retrieves the value of an environment variable.

def envOrElse(variable: String, alt: => String): ZIO[System, SecurityException, String]

Retrieves the value of an environment variable or else returns the specified fallback value.

Retrieves the value of an environment variable or else returns the specified fallback value.

def envOrOption(variable: String, alt: => Option[String]): ZIO[System, SecurityException, Option[String]]

Retrieves the value of an environment variable or else returns the specified optional fallback value.

Retrieves the value of an environment variable or else returns the specified optional fallback value.

def property(prop: => String): ZIO[System, Throwable, Option[String]]

Retrieves the value of a system property.

Retrieves the value of a system property.

def propertyOrElse(prop: String, alt: => String): RIO[System, String]

Retrieves the value of a system property or else return the specified fallback value.

Retrieves the value of a system property or else return the specified fallback value.

def propertyOrOption(prop: String, alt: => Option[String]): ZIO[System, Throwable, Option[String]]

Retrieves the value of a system property or else return the specified optional fallback value.

Retrieves the value of a system property or else return the specified optional fallback value.

Concrete fields

val envs: ZIO[System, SecurityException, Map[String, String]]

Retrieves the values of all environment variables.

Retrieves the values of all environment variables.

val lineSeparator: URIO[System, String]

Retrieves the value of the system-specific line separator.

Retrieves the value of the system-specific line separator.

val properties: ZIO[System, Throwable, Map[String, String]]

Retrieves the values of all system properties.

Retrieves the values of all system properties.