Module B0_zero_conv.Op

B0_zero.Op converters

Stringifiers

val status_to_string : B0_zero.Op.status -> string

status_to_string s is s as a string.

val notify_kind_to_string : B0_zero.Op.Notify.kind -> string

notify_kind_to_string k is k as a string.

Formatters

val pp_file_read : B0_std.Fpath.t B0_std.Fmt.t

pp_file_read formats a read file.

val pp_file_write : B0_std.Fpath.t B0_std.Fmt.t

pp_file_write formats a written file.

pp_line formats a build operation on a single line.

val pp_line_and_ui : B0_zero.Op.t B0_std.Fmt.t

pp_line_and_ui formats like pp_line but also a potential feedback spawn UI and/or failure error messages.

val pp_ui : sep:unit B0_std.Fmt.t -> op_howto:B0_zero.Op.t B0_std.Fmt.t -> B0_zero.Op.t B0_std.Fmt.t

pp_ui formats notifications, failed operations and spawn operations with a UI. In case something is printed sep is added at the end. op_howto should be command fragment to obtain more information about operation failures.

pp formats a build operation with full details.

bincode binary codes an operation.

Aggregate errors

val pp_aggregate_error : ?sep:unit B0_std.Fmt.t -> ?read_howto:B0_std.Fpath.t B0_std.Fmt.t -> ?write_howto:B0_std.Fpath.t B0_std.Fmt.t -> unit -> B0_zero.Op.aggregate_error B0_std.Fmt.t

pp_aggregate_error ~read_howto ~write_howto formats a memo error followed by sep iff somethings is printed (defaults to B0_std.Fmt.flush_nl). The errors are formatted as follows: