From 712f1ea34c4f03e89b017c75f07fda2006d1d817 Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Tue, 6 Apr 2004 12:43:43 +0000 Subject: [PATCH] - uncommented save_to function (now implemented) - added (tiny) description of the 'variable interpolation' feature --- helm/ocaml/registry/helm_registry.mli | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/helm/ocaml/registry/helm_registry.mli b/helm/ocaml/registry/helm_registry.mli index f50d9b4a9..e1c0289a5 100644 --- a/helm/ocaml/registry/helm_registry.mli +++ b/helm/ocaml/registry/helm_registry.mli @@ -54,6 +54,13 @@ * - the whole key is uppercased * - each "." is converted to "__" * E.g.: my.foo_ish.application -> MY__FOO_ISH__APPLICATION + * + * ++ Variable interpolation ++ + * + * Interpolation is supported with the following syntax: + * + * foo.bar = "quux" + * foo.baz = $(foo.bar)/baz *) (** raised when a looked up key can't be found @@ -159,8 +166,10 @@ val add_validator: * Validators aren't saved. load_from/save_to sequences don't preserve comments *) - (** @param fname file to which save current configuration *) -(* val save_to: string -> unit *) + (** @param fname file to which save current configuration + * If xmllint is available then it will be used for pretty printing fname, + * otherwise fname will be in the usual pxp ugly format *) +val save_to: string -> unit (** @param fname file from which load new configuration. If it's an absolute * file name "path" argument is ignored. @@ -171,8 +180,6 @@ val add_validator: *) val load_from: ?path:string list -> string -> unit -(* (* DEBUGGING *) -val dump: unit -> unit -*) +(* val dump: unit -> unit *) -- 2.39.2