cswap-bend-cli
Releases (1)
-
0.1.0.0 indexed
Definitions (4,210)
tui/fmt.bend
- def sgr
- def codes
- def paint_with
- def paint_seg
- def paint_all
- def style_key
- def same_style
- def join_seg
- def merge_acc
- def merge_emit
- def merge_go
- def mergedNeighbouring segments in one style become one (one escape per run).
- def paint
- def render_rest
- def renderLines joined with newlines, each painted (or plain under NO_COLOR).
tui/model.bend
- type WinOne usage window: "5h", "7d" or a model name; None pct is unknown.
- type AcctOne managed account.
- type HdrThe auto-switch line: is the daemon running, and its settings.
- type SnapEverything for one frame.
- type ViewHow to draw it: terminal width in columns, colour on or off (NO_COLOR).
- def win_label
- def win_pct
- def win_reset
- def acct_wins
- def acct_slot
- def acct_active
- def acct_disabled
- def acct_email
- def acct_age
- def acct_note
tui/num.bend
- def sel
- def read_or
- def frac_centiTwo fraction digits, padded: "5" -> 50, "07" -> 7, "555" -> 55.
- def centi_join
- def centi_parts
- def centi_text"47" -> 4700, "47.5" -> 4750, "47.555" -> 4755; anything else is None.
- def centi_of
- def centi_at2
- def centi_at
- def secs_parts
- def secs_ofWhole seconds of a JSON number: "1792740000.1" -> 1792740000.
- def secs_at2
- def secs_at
- def iso_of
- def iso_at2
- def iso_at
- def uint_of
- def uint_at2
- def uint_at
- def str_or
- def opt_json_s
- def str_at
- def null_json
- def parsedA parsed value, JSON null when the text does not parse.
- def parse_text
- def from_opt
- def get_or_null
tui/read.bend
- def f_pid
- def f_next_poll
- def f_active
- def f_accounts
- def f_last_error
- def f_backoff
- def win_pct
- def win_ofOne window object of cache/usage.json: {"pct": 47.0, "resets_at": "<ISO>"}.
- def win_opt
- def win_key
- def cons_win
- def scoped_win
- def scoped
- def wins_ofThe windows of a lastGood object, in the reference's order: 5h, 7d, then the per-model windows.
- def age_of
- def api_key
- def non_empty_pick
- def non_empty
- def first_text
- def error_of
- def note_pick
- def note_of
- def flag_of
- def flag
- def acct_with
- def acct_of
- def is_active
- def first_some
- def active_slotThe live slot: the daemon's view first, else the roster's advisory field.
- def settings_block
- def whole
- def f_config
- def f_interval
- def first_u
- def pick_jThe running daemon's own config (its status file) wins while it is alive; a stopped daemon, or an older status file without one, reads settings.json.
- def daemon_cfg
- def thr_of
- def every_of
- def hdr_of
- def clock_part"12:03:11 info tick no-action": the time of day of ts, level, msg, outcome.
- def join_pick
- def join_sp
- def log_line