New API: aug_transform

Expose the aug_transform API through the library, so it's possible to
add/remove Augeas transformations to handle files in custom places using
existing lenses.
This commit is contained in:
Pino Toscano
2016-08-19 16:19:34 +02:00
parent 50a3abb95f
commit cf5915aee3
4 changed files with 36 additions and 1 deletions

View File

@@ -13205,6 +13205,18 @@ only the unallocated blocks will be extracted.
This is useful to detect hidden data or to retrieve deleted files
which data units have not been overwritten yet." };
{ defaults with
name = "aug_transform"; added = (1, 35, 2);
style = RErr, [String "lens"; String "file"], [ OBool "remove"];
proc_nr = Some 469;
shortdesc = "add/remove an Augeas lens transformation";
longdesc = "\
Add an Augeas transformation for the specified C<lens> so it can
handle C<file>.
If C<remove> is true (C<false> by default), then the transformation
is removed." };
]
(* Non-API meta-commands available only in guestfish.