Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val build_config :
enable_outside_detected_project:Ocamlformat_stdlib.bool ->
root:Ocamlformat_stdlib.Fpath.t Ocamlformat_stdlib.option ->
file:Ocamlformat_stdlib.string ->
is_stdin:Ocamlformat_stdlib.bool ->
(Ocamlformat_lib.Conf.t, Ocamlformat_stdlib.string)
Ocamlformat_stdlib.Result.t
type input = {
kind : Ocamlformat_lib.Syntax.t;
name : Ocamlformat_stdlib.string;
file : file;
conf : Ocamlformat_lib.Conf.t;
}
type action =
| In_out of input * Ocamlformat_stdlib.string Ocamlformat_stdlib.option
Format input file (or -
for stdin) of given kind to output file, or stdout if None.
| Inplace of input Ocamlformat_stdlib.list
Format in-place, overwriting input file(s).
*)| Check of input Ocamlformat_stdlib.list
Check whether the input files already are formatted.
*)| Print_config of Ocamlformat_lib.Conf.t
Print the configuration and exit.
*)Formatting action: input type and source, and output destination.
val action :
Ocamlformat_stdlib.unit ->
(action Cmdliner.Cmd.eval_ok, Cmdliner.Cmd.eval_error)
Ocamlformat_stdlib.Result.t