[augeas-devel] Lenses documentation

Nate Foster jnfoster at cis.upenn.edu
Fri Aug 15 12:02:21 UTC 2008


Great idea! I'm a big fan of literate sources.

It's also worth having a way to print the in-line unit tests in the
documentation.

Nate

On Fri, Aug 15, 2008 at 7:40 AM, Raphaël Pinson <raphink at gmail.com> wrote:
> Hi there,
>
> There are more and more lenses written. Now I think we need a standard way
> of documenting them. I'm thinking of a POD-like syntax which could used
> within the comments in lenses, and would allow to produce doc for each lens,
> or request the doc from the API, like:
>
> augtool> doc Dput.lns
> "We use a standard INI File lens here"
> let lns = IniFile.lns section comment
> augtool> doc Dput.section
> "We use an INI File section with labels, since '/' is allowed in section
> names"
> let section = IniFile.record title entry comment
> augtool> doc Dput.filter
> "Apply to dput config files"
> let filter = blah blah
> augtool> doc Dput
> "Dput is a standard INI File lens which allows to parse dput config files
> blah blah blah
> more sections and explanations on how to use...
> blah blah
> Author, blah blah
> "
>
>
> The idea behind this is for users to easily get documentation about lenses
> without having to read the code.
>
>
> Raphael
>
>
>
>
>
>
> _______________________________________________
> augeas-devel mailing list
> augeas-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/augeas-devel
>




More information about the augeas-devel mailing list