def resolve.with
import shake@0.7.0.0/src/cli.bend as Cliimport Base
1599# a fallback with its default replaced by what the env value gives, when
1600# there is one
1601def resolve.with(
1602 found: Maybe<&2, String>,
1603 kk: ArgKind,
1604 ev: Maybe<&2, String>,
1605 dd: Maybe<&2, String>
1606) -> Fallback:
1607 match found:
1608 case None{}:
1609 Fallback{ev, dd}
1610 case Some{+vv}:
1611 Fallback{ev, env.kind(kk, vv)}