Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a function to append section #11

Open
QEDK opened this issue Feb 9, 2021 · 0 comments
Open

Add a function to append section #11

QEDK opened this issue Feb 9, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed
Milestone

Comments

@QEDK
Copy link
Owner

QEDK commented Feb 9, 2021

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) - If None, we append the section as-is (validate that it's a two-level hashmap), if Some(...), 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 through parse() and add some error checks.
@QEDK QEDK added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers mwoc-medium labels Feb 9, 2021
@QEDK QEDK removed the mwoc-medium label Apr 9, 2021
@QEDK QEDK added this to the v3.0.1 milestone Oct 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant