Definitively.Nodes.StreamCmd (definitively v0.3.1)

Copy Markdown

Runs a subprocess with stdout/stderr streamed to the terminal and captured for callers.

Summary

Functions

Runs executable with args, streaming output until exit or timeout.

Functions

run(executable, args, opts)

@spec run(Path.t(), [String.t()], keyword()) ::
  {:ok, {String.t(), non_neg_integer(), non_neg_integer()}}
  | {:ok, {:timed_out, String.t(), non_neg_integer()}}

Runs executable with args, streaming output until exit or timeout.