cfget
featureful tool to read values from config files
Install
- All systems
-
curl cmd.cat/cfget.sh
- Debian
-
apt-get install cfget
- Ubuntu
-
apt-get install cfget
- Kali Linux
-
apt-get install cfget
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install cfget
- Raspbian
-
apt-get install cfget
- Dockerfile
- dockerfile.run/cfget
cfget
featureful tool to read values from config files
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.