[augeas-devel] RFC: Augeas version api?

Bryan Kearney bkearney at redhat.com
Sun Jan 18 22:45:10 UTC 2009


David Lutterkort wrote:
> On Fri, 2009-01-16 at 10:48 -0500, Bryan Kearney wrote:
>> Just thinking ahead, with new features being added it may be nice to 
>> check the verison before executing them. What would you all think of 
>> either a aug_version() call on the augeas object which reads from 
>> /augeas/version?
>>
>> This would allow you to check from within the tree, or the api directly, 
>> and do branch processing.
> 
> That would be easy enough to do (probably one or two lines in aug_init)
> - though I suspect version info isn't _really_ what you're after, but a
> more finegrained way to inquire about 'features', such as whether noop
> mode for save is supported, right ?

Yes, to be fair, my use case is what you said. Version was my proxy for 
getting the information.

-- bk





More information about the augeas-devel mailing list