txtconf is designed to be complementation for getopt(3), using very similar ways for defining configuration file structure (template).
The idea is to implement universal, easy and efficient way to read and save configuration from/to human-readable text files.
Features
- Easily created configuration templates.
- Almost *everything* is configurable, including keywords, delimiters, etc.
- Configuration options are organized in scopes - aka "namespaces".
- Scopes can be configured as multi-instance or as single-instance type, where multiple occurance of the scope is considered to be an error.
- Options can have defined default values, what allows to either create initial config files or just use them as default settings.
- Options can be configured as mandatory or as optional.
- Options and scopes can be referenced by name or by custom IDs.
- Automatic verification of type-correctness of values.
- Smart verifiaction of saved cfg, which allows to detect whether the file was modified. (i.e. the *resulting* cfg is checked - f.e. a new/changed comment in a cfg file is ignored)
- Man-page included.
- Tests included.
License
GNU Library or Lesser General Public License version 3.0 (LGPLv3)Follow txtconf
Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud
Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of txtconf!