HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //snap/certbot/current/usr/share/augeas/lenses/dist/cmdline.aug
(*
Module: Cmdline
  Parses /proc/cmdline and /etc/kernel/cmdline

Author: Thomas Weißschuh <thomas.weissschuh@amadeus.com>

About: License
  This file is licensed under the LGPL v2+, like the rest of Augeas.
*)

module Cmdline =
  autoload xfm

let entry = [ key Rx.word . Util.del_str "=" . store Rx.no_spaces ] | [ key Rx.word ]

let lns = (Build.opt_list entry Sep.space)? . del /[ \t]*\n?/ ""

let filter = incl "/etc/kernel/cmdline"
           . incl "/proc/cmdline"

let xfm = transform lns filter