Simplelines

Parses simple lines conffiles

Author: Raphael Pinson rap.nosp@m.hink@gmai.nosp@m.l.com

Summary
SimplelinesParses simple lines conffiles
LicenseThis file is licenced under the LGPL v2+, like the rest of Augeas.
Lens UsageTo be documented
Configuration filesSee filter.
ExamplesThe Test_Simplelines file contains various examples and tests.
Augeas Lenses
lineA simple, uncommented, line
lnsThe simplelines lens
Augeas Variables
filter

License

This file is licenced under the LGPL v2+, like the rest of Augeas.

Lens Usage

To be documented

Configuration files

See filter.

Examples

The Test_Simplelines file contains various examples and tests.

Augeas Lenses

line

let line = let line_re = /[^# \t\n].*[^ \t\n]|[^# \t\n]/ in [ seq "line" . Util.indent . store line_re . Util.eol ]

A simple, uncommented, line

lns

let lns = (Util.empty | Util.comment | line)*

The simplelines lens

Augeas Variables

filter

Provides unit tests and examples for the Simplelines lens.
let line = let line_re = /[^# \t\n].*[^ \t\n]|[^# \t\n]/ in [ seq "line" . Util.indent . store line_re . Util.eol ]
A simple, uncommented, line
let lns = (Util.empty | Util.comment | line)*
The simplelines lens
Close