# EnvVars
<span class="source-link">[[Source]](src/cli/env_vars.md#L3)</span>
```pony
primitive val EnvVars
```

## Constructors

### create
<span class="source-link">[[Source]](src/cli/env_vars.md#L3)</span>


```pony
new val create()
: EnvVars val^
```

#### Returns

* [EnvVars](cli-EnvVars) val^

---

## Public Functions

### apply
<span class="source-link">[[Source]](src/cli/env_vars.md#L4)</span>


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}


```pony
fun box apply(
  envs: (Array[String val] box | None val),
  prefix: String val = seq,
  squash: Bool val = seq)
: HashMap[String val, String val, HashEq[String val] val] val
```
#### Parameters

*   envs: ([Array](builtin-Array)\[[String](builtin-String) val\] box | [None](builtin-None) val)
*   prefix: [String](builtin-String) val = seq
*   squash: [Bool](builtin-Bool) val = seq

#### Returns

* [HashMap](collections-HashMap)\[[String](builtin-String) val, [String](builtin-String) val, [HashEq](collections-HashEq)\[[String](builtin-String) val\] val\] val

---

### eq
<span class="source-link">[[Source]](src/cli/env_vars.md#L4)</span>


```pony
fun box eq(
  that: EnvVars val)
: Bool val
```
#### Parameters

*   that: [EnvVars](cli-EnvVars) val

#### Returns

* [Bool](builtin-Bool) val

---

### ne
<span class="source-link">[[Source]](src/cli/env_vars.md#L4)</span>


```pony
fun box ne(
  that: EnvVars val)
: Bool val
```
#### Parameters

*   that: [EnvVars](cli-EnvVars) val

#### Returns

* [Bool](builtin-Bool) val

---

