ConfigExtractor

class ConfigExtractor(extractedConfigs: MutableMap<Key, String>)

Utility for copying config templates to a destination file, adding and removing entries and comments as necessary while keeping changes made by users intact.

Parameters

extractedConfigs

Storage that keeps track of what the config extractor extracted and what changes were made by users, as to not overwrite them. This storage must persist across usages.

Constructors

Link copied to clipboard
constructor(extractedConfigs: MutableMap<Key, String>)

Functions

Link copied to clipboard
fun extract(configId: Key, source: Path, dest: Path)

Extracts the config identified by configId found at source to dest.