Configurations

Open
#9 0 comments 0 reactions 1 assignee View on GitHub

@BrendonButler is already working on this.

Since Jun 9, 2016.

Assessment

This issue has not been assessed yet.

Description

enhancement
  • Improve Loading and Saving (More universal for custom configuration types)
  • JSON Pretty Print (formatted & indented files) #4
  • Yaml Child Nodes (figure out how to use child nodes and implement) #1
  • JSON Child Nodes (similar method for Yaml nodes)
  • Add a way to add something to a list in a config 'config.add(key, value);'
  • Add a way to remove something from a config config.remove(key, value);
  • Add XML Support

JSON Pretty Print
Will probably have to switch from JSON simple to another API for pretty print.

For those who don't know. "Pretty print" is just a formatted version of json. Instead of having all the data on one line, it is indented and multi-lined.

Yaml Child Nodes
Child keys accessed by config.get("first.second.third");
and set by config.set("first.second.third", "Yay, it works!");

first:
  second:
    third: "Yay, it works!"

Issues

  • When trying to set a child node for a parent that already has data (other than it being a map), it won't save the data on exit.. Could be a bug, or it could be a safety feature.. not sure yet, need more research.
  • Leaving out XML support for now. Future addition possibly. Yaml & JSON should be fine for now.
Dominant language
Java
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from BrendonButler/ModestAPI

All issues in BrendonButler/ModestAPI

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.