Live.tag_log: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/daemon/live.bend as Live Lines 128-134 of cswap-bend-cli@0.1.0.0/daemon/live.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/daemon/live.bend&start_line=128&end_line=134 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json # The log line with the profile and strategy added, when a profile is in force. def tag_log(+m: Maybe<&2, Tag>, +j: Json.Json) -> Json.Json: match m: case Some{Tag{p, s}}: Json.set("strategy", Json.JStr{s}, Json.set("profile", Json.JStr{p}, j)) case None{}: j Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/live.bend&name=Tag https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=Json https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=set