def tail_text

cswap-bend-cli@0.1.0.0 · tui/run.bend:121

import cswap-bend-cli@0.1.0.0/tui/run.bend as Run
import Base

121# The last lines of a file, "" when it is missing.
122def tail_text(+path: String, +n: String) -> IO(String):
123  IO.bind(Result<&1, &1, U32 & String, U32 & (String & String)>, String, Process.run("tail", ["-n", n, path], "", 262144, 2000), r => IO.pure(String, out_pick(r)))

Uses (10)

Used by (1)