def env.pick
import ezsys@0.1.0.0/src/step.bend as Stepimport Base
52# an environment variable's value, or the fallback when it is unset
53def env.pick(
54 res: Result<&1, &1, U32 & String, String>,
55 fallback: String
56) -> String:
57 match res:
58 case Fail{_error}:
59 fallback
60 case Done{value}:
61 value