def switch_text
import cswap-bend-cli@0.1.0.0/daemon/events.bend as Eventsimport Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
232def switch_text(+e: Json.Json) -> String:
233 sel(is_dry(Json.get("dryRun", e)), "[dry-run] would switch ", "Switched ") ++ ref_text(get_or_null(e, "from")) ++ " -> " ++ ref_text(get_or_null(e, "to")) ++ " (" ++ f_of(e, "trigger") ++ ")"