An open API service indexing awesome lists of open source software.

https://github.com/zeyso/configmanager

Simple ConfigManager for Json and Yaml Configs
https://github.com/zeyso/configmanager

json yaml

Last synced: about 2 months ago
JSON representation

Simple ConfigManager for Json and Yaml Configs

Awesome Lists containing this project

README

          

# ConfigManager

## Table of Contents
- [MavenSetup](#Maven)
- [JsonExamples](#JsonExamples)
- [YmlExamples](#YmlExamples)

## Maven




xyz.zeyso
https://repo.zeyso.xyz/repo/





xyz.zeyso
configmanager
1.0.0

## JsonExamples

### Example for creating Json File
JsonManager jsonManager = new JsonManager("test");
jsonManager.createFile();

### Example for creating Json File with directory
jsonManager.createFile("file", "directory");
### Example for deleting Json Files
jsonManager.deleteFile();
### Example for reading Json Files value
jsonManager.readLine("key")
### Example for adding Json Files value
jsonManager.writeLine("key", "value");
### Example for adding Json Files Values
String [] keys = {"value1", "value2", "value3"};
jsonManager.writeLine("test", keys);
### Example for updating Json Files value
jsonManager.updateValue("key", "value");
### Example for deleting Json Files line
jsonManager.deleteLine("key");
### Example for deleting Json Files value
jsonManager.deleteValue("key");

## YmlExamples
### Example for creating YML File
YmlManager ymlManager = new YmlManager("test");
ymlManager.createFile();

### Example for creating YML File with directory
ymlManager.createFile("file", "directory");
### Example for deleting YML File
ymlManager.deleteFile();
### Example for reading YML Files value
ymlManager.readLine("key")
### Example for adding YML Files value
ymlManager.writeLine("key", "value");
### Example for updating YML Files value
ymlManager.updateValue("key", "value");
### Example for deleting YML Files line
ymlManager.updateValue("key");
### Example for deleting YML Files value
ymlManager.updateValue("key");