Current.ProcessHelper functions for spawning sub-processes.
The default command printer used in exec and check_output to write the command to the job's log.
val exec :
?cwd:Fpath.t ->
?stdin:string ->
?pp_cmd:(Stdlib.Format.formatter -> Lwt_process.command -> unit) ->
?pp_error_command:(Stdlib.Format.formatter -> unit) ->
cancellable:bool ->
job:Job.t ->
Lwt_process.command ->
unit or_error Lwt.texec ~job cmd uses Lwt_process to run cmd, with output to job's log.
val check_output :
?cwd:Fpath.t ->
?stdin:string ->
?pp_cmd:(Stdlib.Format.formatter -> Lwt_process.command -> unit) ->
?pp_error_command:(Stdlib.Format.formatter -> unit) ->
cancellable:bool ->
job:Job.t ->
Lwt_process.command ->
string or_error Lwt.tLike exec, but return the child's stdout as a string rather than writing it to the log.