Read.pick_j: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/tui/read.bend as Read Lines 171-178 of cswap-bend-cli@0.1.0.0/tui/read.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/tui/read.bend&start_line=171&end_line=178 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json # The 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 pick_j(+live: Bool, +j: Json.Json) -> Json.Json: match live: case True{}: j case False{}: Json.JNull{} Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=Json