cswap-bend-cli
Releases (1)
-
0.1.0.0 indexed
Definitions (4,210)
profile.bend
- def drop.active
- def removesettings.json without the stored profile; the active profile is cleared if it was this one.
- def use
- def has_stored
- type NumRes
- def num.good
- def num.pick
- def num.ofA number key: "inherit" clears it, anything else is range-checked as `cswap config set` checks the matching setting.
- def upd.th
- def upd.cd
- def upd.iv
- def upd.algo
- def models.pickAn empty list is an explicit "no model filter"; `inherit` follows settings.
- def models.of
- def upd.models
- def upd.key
- def update`profile set NAME KEY VALUE` on `p`.
- def chars_ok
- def first_ok
- def valid_nameLetters, digits, `-` and `_`, starting with a letter or digit.
profswitch.bend
- def ActM
- def ActM.pure
- def ActM.bind
- def snap_live
- def snap_ents
- def snap_rows
- def tag
- def noop
- def pad_detail2
- def pad_detail
- def nothing_msg
- def decided
- def usages_for
- def pcfg_for
- def decision_for
- def cur_ref
- def rotate_at
- def rotate_snap
- def rotate_opt
- def rotate_act
- def run_profile
- def with_opts
- def legacy
- def has
- def usage_err
- def unknown_nameA name from `--profile` that matches nothing is an error; a stale `active_profile` falls back to the legacy rotation.
- def by_name
- def resolved
- def targetedOnly a bare `switch` (no target, no --strategy) follows a profile.
- def loaded
- def targeted_out
- def route
- def switch_cmd`cswap switch [TARGET] [--profile NAME] ...`
profview.bend
- def is_active.of
- def is_active`default` is the active profile while `active_profile` is unset.
- def opt_json
- def models_arr
- def eff_json
- def num_or_null
- def prof_json2
- def prof_jsonA profile as the commands print it: what it sets, and what it comes to over the settings.
- def cell
- def models_eff
- def models_cell
- type Row
- def source_of
- def row_of2
- def mark
- def row_of
- def rows_push
- def rows_of
- def header
- def col_name
- def col_strategy
- def col_threshold
- def col_models
- def col_cooldown
- def col_interval
- type Widths
- def widths
- def line
- def lines
- def tableA table; a parenthesised cell is inherited from the autoswitch settings.
- def prof_push
- def prof_jsons
render.bend
- def sel_n
- def sel_l
- def sp
- def padl
- def padr
- def whole.pick`{pct:>3.0f}`: tenths rounded to a whole percent, halves to even, width 3.
- def whole
- def pct_text
- def money.put
- def money.group
- def money.commas
- def money.fmt
- def money.cents
- def money.parts
- def money`${:,.2f}` of a JSON number.