cfget
Git repository: http://git.debian.org/?p=users/enrico/cfget.git
cfget is a simple yet featureful tool to read values from configuration files. It is useful, for example, to create configurable shellscripts or makefiles.
Besides retrieving values, it can dump the information in several convenient ways, like a set of sh exports commands that can be conveniently passed to eval. It can also use the configuration values to expand template files.
It can also be configured to support virtual configuration values that, if not present in the config file, are automatically computed from the existing values. This makes it convenient, for example, to get a "duration" value from a configuration file that only contains a "start date" and an "end date".
It is also easy to create plugins to provide custom templating systems, export styles, dynamic values and even custom configuration file parsers. If you have a system made by various shellscripts that need to use the same configuration, or if some of those shellscripts use sed to replace values inside a template file, then cfget can make your life easier.
News
Released cfget 0.8
I have released version 0.8 of cfget.
I worked on 3 things:
- A big cleanup with the excuse of uploading to Debian
--root=pathto limit queries and dumps to all keys under a given path- when used in template mode with an output file name, it will write it atomically.
Released cfget 0.7
I have released version 0.7 of cfget.
It adds support for custom configuration file parsers, and some commented example plugins.
Development of cfget is sponsored by the BOLCHEM project.