def snap

cswap-bend-cli@0.1.0.0 · tui/read.bend:261

import cswap-bend-cli@0.1.0.0/tui/read.bend as Read
import Base
import cswap-bend-cli@0.1.0.0/tui/model.bend as M
import cswap-bend-cli@0.1.0.0/tui/num.bend as N

261# Everything the dashboard shows, from the text of sequence.json,
262# cache/usage.json, daemon-status.json, settings.json and the tail of
263# daemon.log. Missing or unparseable files read as empty.
264def snap(+version: String, +live: Bool, +now: U32, +off: U32, +seq_t: String, +cache_t: String, +status_t: String, +settings_t: String, +log_t: String) -> M.Snap:
265  snap_of(version, live, now, off, N.parse_text(seq_t), N.parse_text(cache_t), N.parse_text(status_t), N.parse_text(settings_t), log_t)

Uses (6)

Used by (1)