def apply_value3

cswap-bend-cli@0.1.0.0 · daemon/config.bend:301

import cswap-bend-cli@0.1.0.0/daemon/config.bend as Config
import Base
import cswap-bend-cli@0.1.0.0/fmt/code.bend as Code

301def apply_value3(+is_fmt: Bool, +f: Flags, +a: String, +v: String) -> Result<&2, &2, String, Flags>:
302  match is_fmt:
303    case True{}:
304      set_fmt2(Code.of_name(v), f, v)
305    case False{}:
306      apply_value2(String.eq(a, "--strategy") || String.eq(a, "--model"), f, a, v)

Uses (9)

Used by (1)