def show_out

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

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

76def show_out(+json: Bool, +raw: Json.Json, +p: P.Prof) -> Cmd.Out:
77  match json:
78    case True{}:
79      doc([("profile", PV.prof_json(raw, Cfg.from_settings(raw), p))])
80    case False{}:
81      Cmd.ok(show_text(raw, Cfg.from_settings(raw), p))

Uses (11)

Used by (1)