Out.render: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/fmt/out.bend as Out Lines 63-74 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=63&end_line=74 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 # The document in the format, ending in a newline. `key` names the CSV shape # (see shape.bend). def render(f: Fmt, +key: String, +j: Json.Json) -> String: match f: case FCsv{}: Shape.csv_of(key, j) case FYaml{}: Yaml.emit(j) ++ "\n" case FToon{}: Toon.emit(j) ++ "\n" case _: Json.emit_pretty(j) ++ "\n" 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=csv_of 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_pretty