Up

module Exec

: sig

Executing a selections document

#
val get_exec_args : General.config -> ?main:string -> Selections.t -> string list -> string list * string array

Calculate the arguments and environment to pass to exec to run this process. This also ensures any necessary launchers exist, creating them if not.

#
val execute_selections : General.config -> ?exec:(string list -> env:string array -> unit) -> ?wrapper:string -> ?main:string -> Selections.t -> string list -> unit

Run the given selections. If wrapper is given, run that command with the command we would have run as the arguments. If exec is given, use that instead of config.system#exec.

end