Module B0_action_kit

Tools for actions and unit executions.

Quick URL fetching

See also B0_http.

val download_url : ?env:B0_std.Os.Env.assignments -> ?stderr:B0_std.Os.Cmd.stdo -> ?args:B0_std.Cmd.t -> ?progress:bool -> B0_env.t -> ?mode:int -> force:bool -> make_path:bool -> B0_std.Net.Url.t -> dst:B0_std.Fpath.t -> (unit, string) Stdlib.result

download_url env' url file fetches the url (redirections are followed) using curl looked up in env' and the body to file with:

  • 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

.