[augeas-devel] Transform strings and store/retrieve resulting trees (take 2)

David Lutterkort lutter at redhat.com
Fri Jun 1 18:04:28 UTC 2012


On Thu, 2012-05-24 at 14:52 -0700, lutter at redhat.com wrote:
> I revamped the patches I previously posted a little; the biggest change is
> in the API: instead of taking the string totransform directly,
> resp. returning a string, the strings are now taken from values of tree
> nodes. This should make these calls a little more versatile.
> 
> A typical interaction now looks like this:
> 
>   set /text/in/t1 "192.168.0.1 rtr.example.com foo\n"
>   store Hosts.lns /text/in/t1 /text/tree/t1
>   set /text/tree/t1/1/alias[last()+1] bar
>   .. make more changes ..
>   retrieve Hosts.lns /text/in/t1 /text/tree/t1 /text/out/t1
>   get /text/out/t1
> 
> I also shortened the series a little by squashing some patches together.

This is now committed

David





More information about the augeas-devel mailing list