package b0

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module B0_action_kitSource

Tools for actions and unit executions.

Quick URL fetching

See also B0_http.

Sourceval 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_url.t -> B0_std.Fpath.t -> (unit, string) 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.