def status_rows

cswap-bend-cli@0.1.0.0 · fmt/shape.bend:228

import cswap-bend-cli@0.1.0.0/fmt/shape.bend as Shape
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json

228# The active account of a status document as a list of at most one row.
229def status_rows(a: Json.Json) -> List<&2, Json.Json>:
230  match a:
231    case Json.JObj{f}:
232      [Json.set("active", Json.JBool{True{}}, Json.JObj{f})]
233    case _:
234      []

Uses (4)

Used by (1)