[augeas-devel] How to use the generic IniFile module?
Biltong
biltong at fastmail.fm
Mon Mar 5 15:08:31 UTC 2012
On Mon, Mar 5, 2012, at 12:16 PM, Raphaël Pinson wrote:
> 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
Aha, good to know. Thanks.
>
> 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
>
--
http://www.fastmail.fm - Send your email first class
More information about the augeas-devel
mailing list