Env.var: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/share/env.bend as Env Lines 14-18 of ezx@1.11.0.0/src/share/env.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/share/env.bend&start_line=14&end_line=18 import Base import ezx@1.11.0.0/src/share/args.bend as Args # what a variable holds, with a default for when it holds nothing def var(name: String, +alt: String) -> IO(String): do IO: r : Result<&1, &1, U32 & String, String> <- IO.get_env(name) return or_else(Args.text_of(r), alt) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.get_env https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/share/args.bend&name=text_of https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/share/env.bend&name=or_else