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

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -