Table of Contents
ini.class.sh
List of all functions in alphabetic order
ini.dump()
Dump the ini file for visuall check of the parsing functions
🟩 param string filename
ini.help()
Show help
ini.keys()
Get all keys inside a section
🌐 global string $INI_FILE filename of the ini file
🌐 global string $INI_SECTION section of the ini file
🟩 param string name of the ini file
🟩 param string name of the section in ini file
ini.section()
Get all content inside a section
🌐 global string $INI_FILE filename of the ini file
🌐 global string $INI_SECTION section of the ini file
🟩 param string name of the ini file
🟩 param string name of the section in ini file
ini.sections()
Get all sections
🌐 global string $INI_FILE filename of the ini file
🟩 param string name of the ini file
ini.set()
Set the INI file - and optional section - for short calls.
🟩 param string filename
🔹 param string optional: section
ini.setsection()
Set the INI section for short calls.
🌐 global string $INI_FILE filename of the ini file
🌐 global string $INI_SECTION section of the ini file
🟩 param string section
ini.validate()
Validate the ini file
🟩 param string path of ini file to validate
🟩 param string path of ini file with validation rules
🔹 param bool optional: show more output; default: 0
ini.value()
Get a value of a variable in a given section
🌐 global string $INI_FILE filename of the ini file
🌐 global string $INI_SECTION section of the ini file
🟩 param string name of the ini file
🟩 param string name of the section in ini file
🟩 param string name of the variable to read
ini.varexport()
Create bash code to export all variables as hash.
Example:
eval "$( ini.varexport "cfg_" "$inifile" )"
🟩 param string prefix for the variables
🟩 param string ini file to read
Generated with Bashdoc v0.7