From 24fb307289750ec948dad249020d69143b98303a Mon Sep 17 00:00:00 2001 From: Dominic Cleal Date: Mon, 2 Jun 2014 14:14:18 +0100 Subject: [PATCH] * man/augtool.pod: update man page with new commands Fixes RHBZ#1100077 (cherry picked from commit 242acb210d87e94f6244d85f22301caa630885c0) Conflicts: NEWS man/augtool.1 man/augtool.pod * man/augtool.pod: update man page with --span option (cherry picked from commit 3c5a185afbfee4e3156ba9e0c6e2a5b32233b0cf) Conflicts: NEWS man/augtool.1 --- man/augtool.pod | 169 +++++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 124 insertions(+), 45 deletions(-) diff --git a/man/augtool.pod b/man/augtool.pod index c145032..28f8563 100644 --- a/man/augtool.pod +++ b/man/augtool.pod @@ -92,6 +92,11 @@ creates no entries under C whatsoever; to read any files, they need to be set up manually and loading must be initiated with a C command. Using this option gives the fastest startup. +=item B<--span> + +Load span positions for nodes in the tree, as they relate to the original +file. Enables the use of the B command to retrieve position data. + =item B<--version> Print version information and exit. The version is also in the tree under @@ -111,12 +116,69 @@ be distinguished by appending C<[N]> to their label to match the N-th sibling with such a label. The last sibling with a specific label can be reached as C<[last()]>. See L for some examples of this. +=head2 ADMIN COMMANDS + +The following commands control the behavior of Augeas and augtool itself. + =over 4 +=item B + +Print this help text + +=item B + +Load files according to the transforms in C. + =item B Exit the program +=item B ELENSE ENODE_INE EPATHE ENODE_OUTE + +Transform tree at PATH back into text using lens LENS and store the +resulting string at NODE_OUT. Assume that the tree was initially read in +with the same lens and the string stored at NODE_IN as input. + +=item B + +Save all pending changes to disk. Unless either the B<-b> or B<-n> +command line options are given, files are changed in place. + +=item B ELENSE ENODEE EPATHE + +Parse NODE using LENS and store the resulting tree at PATH. + +=item B ELENSE EFILTERE EFILEE + +Add a transform for FILE using LENS. The LENS may be a module name or a +full lens name. If a module name is given, then "lns" will be the lens +assumed. The FILTER must be either "incl" or "excl". If the filter is +"incl", the FILE will be parsed by the LENS. If the filter is "excl", +the FILE will be excluded from the LENS. FILE may contain wildcards. + +=back + +=head2 READ COMMANDS + +The following commands are used to retrieve data from the Augeas tree. + +=over 4 + +=item B I<[EPATHE]> I<[EFILENAMEE]> + +Print entries in the tree as XML. If PATH is given, printing starts there, +otherwise the whole tree is printed. If FILENAME is given, the XML is saved +to the given file. + +=item B EPATHE + +Print the value associated with PATH + +=item B