Definitively.Nodes.CmdExec (definitively v0.3.1)

Copy Markdown

Shared subprocess runner for structured git/gh node executors.

Summary

Functions

Runs a single executable with args in cwd.

Runs argv sequences sequentially; stops on first non-zero exit or timeout.

Functions

run(executable, args, opts)

@spec run(String.t(), [String.t()], keyword()) ::
  {:ok, Definitively.Domain.RawResult.t()}
  | {:ok, {:timed_out, Definitively.Domain.RawResult.t()}}

Runs a single executable with args in cwd.

run_argv(executable, argv_or_multi, opts)

@spec run_argv(String.t(), [String.t()] | {:multi, [[String.t()]]}, keyword()) ::
  {:ok, Definitively.Domain.RawResult.t()} | {:error, term()}

Runs argv sequences sequentially; stops on first non-zero exit or timeout.