Skip to content

Convert YAML to Properties for Spring configuration

License

Notifications You must be signed in to change notification settings

up2code/yaml2props

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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.