def env.kind

shake@0.7.0.0 · src/cli.bend:1584

import shake@0.7.0.0/src/cli.bend as Cli
import Base

1584# the default an env value gives an argument of this kind: a flag is set
1585# unless the value turns it off; every other kind takes the value
1586def env.kind(kk: ArgKind, +vv: String) -> Maybe<&2, String>:
1587  match kk:
1588    case Flag{}:
1589      Bool.pick(Maybe<&2, String>, env.off(vv), None{}, Some{"true"})
1590    case Opt{}:
1591      Some{vv}
1592    case Many{}:
1593      Some{vv}
1594    case Pos{}:
1595      Some{vv}
1596    case Rest{}:
1597      Some{vv}

Uses (5)

Used by (1)