System

object System extends Serializable
Companion:
class
class Object
trait Matchable
class Any
System.type

Type members

Classlikes

object OS
Companion:
class
sealed trait OS
Companion:
object
object SystemLive extends System

Value members

Concrete methods

def env(variable: => String)(implicit trace: Trace): IO[SecurityException, Option[String]]

Retrieves the value of an environment variable.

Retrieves the value of an environment variable.

def envOrElse(variable: => String, alt: => String)(implicit trace: Trace): IO[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])(implicit trace: Trace): IO[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 envs(implicit trace: Trace): IO[SecurityException, Map[String, String]]

Retrieves the values of all environment variables.

Retrieves the values of all environment variables.

def lineSeparator(implicit trace: Trace): UIO[String]

Retrieves the value of the system-specific line separator.

Retrieves the value of the system-specific line separator.

def properties(implicit trace: Trace): Task[Map[String, String]]

Retrieves the values of all system properties.

Retrieves the values of all system properties.

def property(prop: => String)(implicit trace: Trace): Task[Option[String]]

Retrieves the value of a system property.

Retrieves the value of a system property.

def propertyOrElse(prop: => String, alt: => String)(implicit trace: Trace): Task[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])(implicit trace: Trace): Task[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

lazy val os: OS
val tag: Tag[System]