Module: lib-tde.config-writer

Write/override a configuration file to contain new settings.

Useful when you want to override user settings. Such as in the settings app.

Info:

  • Copyright: 2020 Tom Meyers
  • Author: Tom Meyers

Static module functions

lib-tde.config-writer.update_entry (file, field, value) -> bool Update an entry in a configuration file


Static module functions

lib-tde.config-writer.update_entry (file, field, value) -> bool
Update an entry in a configuration file

Parameters:

  • file string The path to the file, can be both absolute or relative.
  • field string The specific configuration field to update
  • value string The value that the configuration field should contain

Returns:

    bool if the write was successful

Usage:

    -- This will create the content in hallo.txt to var=value
     lib-tde.file.update_entry("hallo.txt", "var", "value")
generated by LDoc 1.4.6 Build with 💜 By F0xedb Last updated 2021-05-21 03:30:15