def resolve_env_valid

cli@0.2.0.0 · cli.bend:3758

import cli@0.2.0.0/cli.bend as Cli
import Base

3758def resolve_env_valid(found: Maybe<&2, Bad>, info: ArgInfo,
3759    name: String, value: String) -> FieldBuild:
3760  match found:
3761    case Some{Bad{bad, why}}:
3762      BuildFault{E11{arg_display(info), bad, name, why}}
3763    case None{}:
3764      match info:
3765        case ArgInfo{id, usage, short, long, kind, attrs}:
3766          Built{[Field{id, env_values(kind, attrs, value), Env{}}]}

Uses (11)

Used by (1)