Octogram.Helpers
type case_maker = {
mk_case : 'a 'b. string ->
'a Data_encoding.t ->
('b -> 'a option) ->
('a -> 'b) ->
'b Data_encoding.case;
}
val make_mk_case : unit -> case_maker
val of_json_string : 'a Data_encoding.Encoding.t -> string -> 'a
val of_json_string_opt : 'a Data_encoding.Encoding.t -> string -> 'a option
val to_json_string : 'a Data_encoding.Encoding.t -> 'a -> string
download url filename
downloads the file at url
, stores it in a temporary file named filename
, and returns the complete path to the downloaded file.
The dir
optional argument can be specified to the directory inside of which to save the file. If omitted, the directory is chosen by Tezt.
The runner
optional argument can be specified to execute the command on a remote runner. If omitted, the command is executed locally.
val mkdir_runnable :
?runner:Tezt__.Runner.t ->
?p:bool ->
string ->
(Tezt.Process.t, unit) Tezt_tezos.Runnable.t
val deploy_runnable :
runner:Tezt.Runner.t ->
?r:bool ->
string ->
string ->
(Tezt.Process.t, unit) Tezt_tezos.Runnable.t