feat(config): add ability to get value(s) of multivar variable

This commit is contained in:
Aleksey Kulikov 2021-06-17 17:01:10 +03:00
parent 4988b295a5
commit 6a08a7b803
3 changed files with 68 additions and 6 deletions

View file

@ -142,6 +142,14 @@ class Config {
}
}
/// Returns list of values for multivar [key]
///
/// If [regexp] is present, then the iterator will only iterate over all
/// values which match the pattern.
List<String> getMultivar(String key, {String? regexp}) {
return config.getMultivar(configPointer.value, key, regexp);
}
/// Releases memory allocated for config object.
void close() {
calloc.free(configPointer);