def env.of
import shake@0.7.0.0/src/cli.bend as Cliimport Base
1572# the env value of an env var: its first pair's value, when that is not empty
1573def env.of(ev: Maybe<&2, String>, vars: List<&2, Var>) -> Maybe<&2, String>:
1574 match ev:
1575 case None{}:
1576 None{}
1577 case Some{+var}:
1578 env.full(env.get(vars, var))