Out.event_text: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/fmt/out.bend as Out Lines 167-178 of cswap-bend-cli@0.1.0.0/fmt/out.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/fmt/out.bend&start_line=167&end_line=178 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json import cswap-bend-cli@0.1.0.0/fmt/shape.bend as Shape import cswap-bend-cli@0.1.0.0/fmt/yaml.bend as Yaml import cswap-bend-cli@0.1.0.0/fmt/toon.bend as Toon # One event as the text IO.print puts on its own line(s): a JSON line, a CSV # row, a `---` YAML document, a TOON document followed by a blank line. def event_text(f: Fmt, +e: Json.Json) -> String: match f: case FCsv{}: Shape.event_row(e) case FYaml{}: "---\n" ++ Yaml.emit(e) case FToon{}: Toon.emit(e) ++ "\n" case _: Json.emit_py(e) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/fmt/out.bend&name=Fmt https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/fmt/shape.bend&name=event_row https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/fmt/toon.bend&name=emit https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/fmt/yaml.bend&name=emit 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=emit_py