[augeas-devel] Re: Prefix for IniFile entries

Free Ekanayaka free at 64studio.com
Wed Aug 27 15:59:35 UTC 2008


Hi Raphaël,

|--==> On Wed, 27 Aug 2008 12:41:38 +0200, "Raphaël Pinson" <raphink at gmail.com> said:

  RP> I think we could add it to inifile.aug. Making it optional is another story.
  RP> Options in augeas lenses are not easy to deal with since you cannot have
  RP> optional arguments to functions nor default values for parameters in
  RP> functions. That's why inifile.aug ended up with pretty big calls for entry,
  RP> record and lns, and additionnal record_noempty and lns_noempty to deal with
  RP> files that don't accept empty lines. All the same, there would be a need for
  RP> entry_noindent, record_noindent and record_noempty_noindent calls, which
  RP> makes it a bit ugly to my taste. Ideas on this are welcome.

If introducing ugly _noindent declarations is the only viable way at
the moment, but it makes inifile.aug enough flexible to deal with all
kind of INI files, then I would go for it. Of course Better
alternatives are welcome.

Ciao!

Free




More information about the augeas-devel mailing list