Cmdlang_to_base.TranslateTranslate cmdlang parsers to core.command.
The translation implemented in this module allows some configuration regarding the resulting command that you want to build. The goal of this configuration is to furnish assistance for complex multi-stages migrations from a backend to another.
It is currently experimental, not well tested or documented, and expected to change in the future.
module Config : sig ... endval param :
'a Cmdlang.Command.Param.t ->
config:Config.t ->
'a Command.Arg_type.tval arg : 'a Cmdlang.Command.Arg.t -> config:Config.t -> 'a Command.Param.tval command_basic :
?config:Config.t ->
(Base.unit -> Base.unit) Cmdlang.Command.t ->
Command.tval command_or_error :
?config:Config.t ->
(Base.unit -> Base.unit Base.Or_error.t) Cmdlang.Command.t ->
Command.tval command_unit : ?config:Config.t -> Base.unit Cmdlang.Command.t -> Command.tunit can be a convenient helper during a migration, however note that it is probably not quite right, due to the body of the command being evaluated as an argument.
module Utils : sig ... endmodule Private : sig ... endThis module is exported for testing purposes only. Its signature may change in breaking ways without any notice. Do not use.