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: 168

ini.help()

Show help

line: 201

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: 120

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: 101

ini.sections()

Get all sections

🌐 global  string  $INI_FILE     filename of the ini file

🟩 param   string  name of the ini file

line: 89

ini.set()

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

line: 46

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: 65

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: 313

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: 138

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: 291


Generated with Bashdoc v0.7