Simplelines - Augeas Documentation

# Simplelines

Parses simple lines conffiles

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

Summary

Simplelines | Parses simple lines conffiles
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 | A simple, uncommented, line
lns | The 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