Module B0_action_kit

Tools for actions and unit executions.

Quick URL fetching

See also B0_http.

val fetch_url : ?env:B0_std.Os.Env.assignments -> ?stderr:B0_std.Os.Cmd.stdo -> ?args:B0_std.Cmd.t -> ?progress:bool -> B0_env.t -> B0_std.Url.t -> B0_std.Fpath.t -> (unit, string) Stdlib.result

fetch_url env' url file fetches url (redirections are followed) using curl looked up in env' and writes it to file. progress indicates whether progress should be reported on stderr (defaults to true), args are arguments added to the invocation, env and stderr are given to the corresponding B0_std.Os.Cmd.run.