Bump to 1.14.1
[platform/upstream/augeas.git] / lenses / cmdline.aug
1 (*
2 Module: Cmdline
3   Parses /proc/cmdline and /etc/kernel/cmdline
4
5 Author: Thomas Weißschuh <thomas.weissschuh@amadeus.com>
6
7 About: License
8   This file is licensed under the LGPL v2+, like the rest of Augeas.
9 *)
10
11 module Cmdline =
12   autoload xfm
13
14 let entry = [ key Rx.word . Util.del_str "=" . store Rx.no_spaces ] | [ key Rx.word ]
15
16 let lns = (Build.opt_list entry Sep.space)? . del /[ \t]*\n?/ ""
17
18 let filter = incl "/etc/kernel/cmdline"
19            . incl "/proc/cmdline"
20
21 let xfm = transform lns filter