def ps_text
import cswap-bend-cli@0.1.0.0/daemon/sess.bend as Sessimport Base
67def ps_text(r: Result<&1, &1, U32 & String, U32 & (String & String)>) -> Maybe<&2, String>:
68 match r:
69 case Fail{e}:
70 None{}
71 case Done{(st, (out, err))}:
72 ps_nonempty(U32.is_eq(st, 0), String.trim(out))