Hg.RresultHelpers to wrap process outputs.
val exit0 : Output.t -> (unit, [ `Vcs of Pplumbing_err.Err.t ]) Stdlib.Result.tval exit0_and_stdout :
Output.t ->
(string, [ `Vcs of Pplumbing_err.Err.t ]) Stdlib.Result.tval exit_code :
Output.t ->
accept:(int * 'a) list ->
('a, [ `Vcs of Pplumbing_err.Err.t ]) Stdlib.Result.tA convenient wrapper to write exhaustive match on a result conditioned by a list of accepted exit codes. If the exit code is not part of the accepted list, the function takes care of returning an error of the expected result type.