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

line: 163

ini.help()

Show help

line: 196

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

line: 115

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

line: 100

ini.sections()

Get all sections

🌐 global  string  $INI_FILE     filename of the ini file

🟩 param   string  name of the ini file

line: 88

ini.set()

Set the INI file - and optional section - for short calls.
🟩 param   string  filename
🔹 param   string  optional: section

line: 45

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

line: 64

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

line: 308

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

line: 133

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

line: 286