System

zio.System$
See theSystem companion trait
object System extends Serializable

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
System.type

Members list

Concise view

Type members

Classlikes

object OS

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
OS.type
sealed trait OS

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Mac.type
object Solaris.type
object Unix.type
object Unknown.type
object Windows.type
Self type
object SystemLive extends System

Attributes

Graph
Supertypes
trait System
class Object
trait Matchable
class Any
Self type

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.

Attributes

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.

Attributes

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.

Attributes

def envs(implicit trace: Trace): IO[SecurityException, Map[String, String]]

Retrieves the values of all environment variables.

Retrieves the values of all environment variables.

Attributes

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.

Attributes

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

Retrieves the values of all system properties.

Retrieves the values of all system properties.

Attributes

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

Retrieves the value of a system property.

Retrieves the value of a system property.

Attributes

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.

Attributes

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.

Attributes

Concrete fields

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