[augeas-devel] How to use the generic IniFile module?
Raphaël Pinson
raphink at gmail.com
Mon Mar 5 11:16:17 UTC 2012
Hello,
On Mon, Mar 5, 2012 at 10:32 AM, Biltong <biltong at fastmail.fm> wrote:
> Is it possible to list all lenses that Augeas supports?
Yes, in augtool you can use:
augtool> print /augeas//incl
which will list all include paths. Beware that there's also "excl"
nodes for exclusions on wildcards.
>
> I'd like to edit a .ini file without defining a new lens. When I try, I
> get an error:
>
> augtool> set /augeas/load/IniFile/lens inifile
> augtool> set /augeas/load/IniFile/incl /some/file.ini
> augtool> load
> error: Lens not found
> error: Can not find lens inifile
>
> I can see a inifile.aug in /usr/share/augeas/lenses/dist
>
> What's going on? Thanks.
As Dominic already said, inifile.aug is a generic lens used to build
IniFile lenses, since IniFiles are not standard.
Raphaël
More information about the augeas-devel
mailing list