configparser-rs
configparser-rs copied to clipboard
Add a function to append section
trafficstars
Similar to configparser in Python, we should have an option to append sections using a direct hashmap and string.
append(Some(sectionname), HashMap to append)- IfNone, we append the section as-is (validate that it's a two-level hashmap), ifSome(...), we create a hashmap with that section and add the entire section (need an error-check to ensure it's a flat hashmap).append_str(...)- Same behaviour as above, we run the underlying stuff throughparse()and add some error checks.