Hi Robin,<br><br><br>Thank you for this nice lens. I see you've been putting quite a lot of info in comments in there. It would be nice if you could document using the standards described on [0], so your module can be included in [1].<br>
<br><br>Regards,<br><br><br>Raphaël<br><br><br>[0] <a href="http://augeas.net/page/Documenting_your_modules">http://augeas.net/page/Documenting_your_modules</a><br>[1] <a href="http://augeas.net/docs/references/lenses">http://augeas.net/docs/references/lenses</a><br>

<br><br><br><br><div class="gmail_quote">On Wed, Dec 31, 2008 at 10:35 AM, Robin Lee Powell <span dir="ltr"><<a href="mailto:rlpowell@digitalkingdom.org">rlpowell@digitalkingdom.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Wed, Dec 31, 2008 at 01:28:30AM -0800, Robin Lee Powell wrote:<br>
> On Tue, Dec 30, 2008 at 04:19:08PM -0800, Robin Lee Powell wrote:<br>
> > On Mon, Dec 29, 2008 at 09:54:13PM -0800, David Lutterkort wrote:<br>
> > > >   let bare_option = [ label "bare_option" . store word ]<br>
> > > ><br>
> > > >   let valued_option = [ label "value_option" . store word ] . sep_spc .<br>
> > > >                         [ label "value" . store word ]<br>
> > > >   let record = [ seq "option" . ( bare_option | valued_option ) . eol ]<br>
> > ><br>
> > > Why don't you use the name of the option as a key and store the value<br>
> > > for that option as the value of the tree node ? Something along the<br>
> > > lines of (untested):<br>
> > ><br>
> > >         let record = [ key word . (sep_spc . store word)? . eol ]<br>
> > ><br>
> > > That would producea much more compact and readable tree.<br>
> ><br>
> > Because I have no idea what I'm doing.  :)  I just grabbed the<br>
> > fstab lens and flailed.<br>
><br>
> It turns out that with that method I can't figure out how to set a<br>
> bare option.  That is, I get things like:<br>
><br>
> augtool> ls /files/etc/dpkg/dpkg.cfg<br>
> #comment[1] = dpkg configuration file<br>
> #comment[2] = This file can contain default options for dpkg.  All command-line<br>
> [snip]<br>
> no-debsig = (none)<br>
><br>
> but I can't figure out how to set an option like no-debsig, with no<br>
> value.<br>
<br>
</div>NM; figured it out.  Test and lens attached.<br>
<font color="#888888"><br>
-Robin<br>
</font><br>_______________________________________________<br>
augeas-devel mailing list<br>
<a href="mailto:augeas-devel@redhat.com">augeas-devel@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/augeas-devel" target="_blank">https://www.redhat.com/mailman/listinfo/augeas-devel</a><br></blockquote></div><br>