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 an easy way to save the comments when converting to an object #20

Closed
TheElectronWill opened this issue Apr 26, 2017 · 0 comments
Closed
Assignees
Milestone

Comments

@TheElectronWill
Copy link
Owner

TheElectronWill commented Apr 26, 2017

Problem found when trying to use NightConfig for the Photon server's configuration: there is no simple way to copy all the comments (deeply) of a commented configuration. This would be very useful when converting config to object, because the conversion loses the comments.
Solution in that situation:

  1. Load the commented configuration
  2. Exports all its comments, including the comments of the sub-configs // needs improvement here
  3. Converts it to a custom object
  4. Converts the object to a config
  5. Adds the previously saved comments to this config // needs improvement here
  6. Save the config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant