Shape.by_key: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/fmt/shape.bend as Shape Lines 246-251 of cswap-bend-cli@0.1.0.0/fmt/shape.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/fmt/shape.bend&start_line=246&end_line=251 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json def by_key(+key: String, +j: Json.Json) -> String: Bool.pick(String, String.eq(key, "list"), table(account_cols(), items_at(j, "accounts")), Bool.pick(String, String.eq(key, "status"), table(account_cols(), status_rows(get_or_null(j, "active"))), Bool.pick(String, String.eq(key, "config-list"), table(setting_cols(), items_at(j, "settings")), Bool.pick(String, String.eq(key, "profile-list"), table(profile_cols(), items_at(j, "profiles")), Bool.pick(String, String.eq(key, "export"), kv(j), wide(j)))))) Uses (13): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/fmt/shape.bend&name=account_cols https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/fmt/shape.bend&name=get_or_null https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/fmt/shape.bend&name=items_at https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/fmt/shape.bend&name=kv https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/fmt/shape.bend&name=profile_cols https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/fmt/shape.bend&name=setting_cols https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/fmt/shape.bend&name=status_rows https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/fmt/shape.bend&name=table https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/fmt/shape.bend&name=wide https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=Json