BrendonButler / BrendonButler/ModestAPI

Configurations

Đang mở
#9 0 bình luận 0 reaction 1 người được giao Được @BrendonButler nhận Xem trên GitHub
enhancement
Ngôn ngữ chính
Java
Star
1
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

- [x] Improve Loading and Saving (More universal for custom configuration types)
- [x] JSON Pretty Print (formatted & indented files) #4
- [x] Yaml Child Nodes (figure out how to use child nodes and implement) #1
- [x] 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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.