Skip to content

EnvVars

[Source]

primitive val EnvVars

Constructors

create

[Source]

new val create()
: EnvVars val^

Returns


Public Functions

apply

[Source]

Turns an array of strings that look like environment variables, ie. key=value, into a map of string to string. Can optionally filter for keys matching a 'prefix', and will squash resulting keys to lowercase iff 'squash' is true.

So: <PREFIX><KEY>=<VALUE> becomes: {KEY, VALUE} or {key, VALUE}

fun box apply(
  envs: (Array[String val] box | None val),
  prefix: String val = "",
  squash: Bool val = false)
: HashMap[String val, String val, HashEq[String val] val] val

Parameters

Returns


eq

[Source]

fun box eq(
  that: EnvVars val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: EnvVars val)
: Bool val

Parameters

Returns