package ocamlformat

  1. Overview
  2. Docs
type file =
  1. | Stdin
  2. | File of Ocamlformat_stdlib.string
type action =
  1. | 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.

    *)
  2. | Inplace of input Ocamlformat_stdlib.list
    (*

    Format in-place, overwriting input file(s).

    *)
  3. | Check of input Ocamlformat_stdlib.list
    (*

    Check whether the input files already are formatted.

    *)
  4. | Print_config of Ocamlformat_lib.Conf.t
    (*

    Print the configuration and exit.

    *)

Formatting action: input type and source, and output destination.