| Exclude
(** The operation mode for the {!transform} function. *)
-exception Error of error_code * string * string * string
+exception Error of error_code * string * string * string * string
(** This exception is thrown when the underlying Augeas library
returns an error. The tuple represents:
- the Augeas error code
- the ocaml-augeas error string
+ - the Augeas error message
- the human-readable explanation of the Augeas error, if available
- a string with details of the Augeas error
*)
of [path]. By default it is inserted after [path], unless
[~before:true] is specified. *)
+val label : t -> path -> string option
+ (** [label t path] gets the label of [path].
+
+ Returns [Some value] when [path] matches only one node, and
+ that has an associated label. *)
+
val rm : t -> path -> int
(** [rm t path] removes all nodes matching [path].
val set : t -> path -> value option -> unit
(** [set t path] sets [value] as new value at [path]. *)
+val setm : t -> path -> string option -> value option -> int
+ (** [setm t base sub value] sets [value] as new value for all the
+ nodes under [base] that match [sub] (or all, if [sub] is
+ [None]).
+
+ Returns the number of nodes modified. *)
+
val transform : t -> string -> string -> transform_mode -> unit
(** [transform t lens file mode] adds or removes (depending on
[mode]) the transformation of the specified [lens] for [file]. *)