Closed LightAndLight closed 1 year ago
Depends on https://github.com/LightAndLight/ipso/issues/286.
env.getvar! : String -> IO String
env.getvar! is a version of env.getvar that crashes when the variable is missing. See https://github.com/LightAndLight/ipso/discussions/276 for discussion.
env.getvar!
env.getvar
It should behave like this:
getvar! : String -> IO String getvar! key = bind mValue <- env.getvar key case mValue of None () -> comp eprintln "missing environment variable: $key" exit.failure Some value -> io.pure value
Depends on https://github.com/LightAndLight/ipso/issues/286.
env.getvar!
is a version ofenv.getvar
that crashes when the variable is missing. See https://github.com/LightAndLight/ipso/discussions/276 for discussion.It should behave like this:
To do