def set_fmt2
import cswap-bend-cli@0.1.0.0/daemon/config.bend as Configimport Base
import cswap-bend-cli@0.1.0.0/fmt/code.bend as Code
293# `--format NAME`: the output format of the event stream (src/fmt/code.bend).
294def set_fmt2(m: Maybe<&2, U32>, +f: Flags, +v: String) -> Result<&2, &2, String, Flags>:
295 match m f:
296 case Some{n} Flags{o, j, d, th, iv, cd, st, md, ia}:
297 Done{Flags{o, n, d, th, iv, cd, st, md, ia}}
298 case None{} _:
299 Fail{Code.invalid("--format", v)}