def tool.out

cswap-bend-cli@0.1.0.0 · fs.bend:24

import cswap-bend-cli@0.1.0.0/fs.bend as Fs
import Base

24# Run a tool; Done{stdout} on exit status 0, else Fail{(status, stderr)}.
25def tool.out(r: Result<&1, &1, U32 & String, U32 & (String & String)>) -> Res(String):
26  match r:
27    case Fail{e}:
28      Fail{e}
29    case Done{(+status, (out, err))}:
30      tool.status(U32.is_eq(status, 0), status, out, err)

Uses (8)

Used by (1)