open Import

(** Setup automatic format rules for the given dir. If tools like ocamlformat
    are not available in $PATH, just display an error message when the alias is
    built.

    This must be called from inside the [formatted_dir_basename] sub-directory. *)
val gen_rules : Super_context.t Memo.t -> output_dir:Path.Build.t -> unit Memo.t

(** This must be called from the main directory, i.e. the ones containing the
    source files and the [formatted_dir_basename] sub-directory. *)
val setup_alias : dir:Path.Build.t -> unit Memo.t

val formatted_dir_basename : Filename.t
