safe_os (rebar_safe v1.0.1)
View SourcePort-based process execution — no shell, ever — args list only.
Use shell_passthrough/3 to run a binary directly with an explicit args list. Output is forwarded to standard_io as it arrives; only the exit code is returned.
Summary
Functions
Execute an executable directly with an explicit args list (no shell involved).
Types
-type exit_code() :: non_neg_integer().
-type shell_option() :: {cd, file:filename_all()} | {env, [{string(), string() | false}]}.
-type shell_options() :: [shell_option()].
Functions
-spec shell_passthrough(Executable :: file:filename_all(), Args :: [string()], Options :: shell_options()) -> exit_code().
Execute an executable directly with an explicit args list (no shell involved).