def list_out

cswap-bend-cli@0.1.0.0 · profcmd.bend:54

import cswap-bend-cli@0.1.0.0/profcmd.bend as Profcmd
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/cmd.bend as Cmd
import cswap-bend-cli@0.1.0.0/profile.bend as P
import cswap-bend-cli@0.1.0.0/daemon/config.bend as Cfg
import cswap-bend-cli@0.1.0.0/profview.bend as PV

54def list_out(+json: Bool, +raw: Json.Json) -> Cmd.Out:
55  match json:
56    case True{}:
57      list_doc(raw)
58    case False{}:
59      Cmd.ok(PV.table(PV.rows_of(raw, Cfg.from_settings(raw), P.names(raw))))

Uses (9)

Used by (1)