https://github.com/up2code/yaml2props
Convert YAML to Properties for Spring configuration
https://github.com/up2code/yaml2props
properties spring-boot utility yaml
Last synced: 30 days ago
JSON representation
Convert YAML to Properties for Spring configuration
- Host: GitHub
- URL: https://github.com/up2code/yaml2props
- Owner: up2code
- License: mit
- Created: 2018-12-19T07:53:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-14T08:59:50.000Z (over 4 years ago)
- Last Synced: 2023-03-03T10:42:09.437Z (about 2 years ago)
- Topics: properties, spring-boot, utility, yaml
- Language: Python
- Size: 5.86 KB
- Stars: 22
- Watchers: 4
- Forks: 34
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# YAML2PROPERTIES
Simple script for convert YAML to Properties file for Spring application configuration.
## Minimum requirement
- Python 2.7+
- pyperclip (pip install pyperclip)## How to install
```sh
cp yaml2props.py /usr/local/bin/yaml2props.py
cp yaml2props.sh /usr/local/bin/yaml2props
chmod +x /usr/local/bin/yaml2props
```## How to use
```
$ yaml2props {your_path_file}
```or you can specific output file path by yourself with option `--output`
```
$ yaml2props {your_path_file} --output {your_destination_file_path}
```You can try with _sample.yaml_ as example file.