Parsing a simple libconfuse file with Augeas -
i'm using libconfuse program's configuration files, , that's working nicely. i'm interested parse configuration files using augeas. found mailing list post says there's no generic augeas lens libconfuse files, because it's "context-free file format" (in essence, allows infinite nesting).
my program's configuration files quite simple, 1 level of sections containing configuration parameters. e.g.:
serial { serial-device = "/dev/ttyusb0" baudrate = 115200 } server-socket { host = "localhost" port = 12345 } what involved in writing generic augeas lens simple variety of libconfuse configuration file? there examples around? straight-forward way handle this?
the post you're referring 2008. augeas has since been able parse recursive configuration files, using rec keyword. see example lvm.aug, quite similar you're trying achieve.
Comments
Post a Comment