Skip to content

Latest commit

 

History

History
47 lines (28 loc) · 1.23 KB

README.adoc

File metadata and controls

47 lines (28 loc) · 1.23 KB

README

Helper script to convert Spring YAML configuration files into their environment variable representation as defined by the Spring Relaxed Binding.

Initially created for the Artemis interactive learning system.

Usage

Python 3.8 or newer is required.

python ./spring_yaml_to_env/spring_yaml_to_env.py --help

usage: spring_yaml_to_env.py [-h] [-s] [yaml_files ...]

Converts a list of Spring configuration YAML files into a combined list of
environment variable mappings.

The conversions of all files are combined and printed on the standard output in
the format as required by .env-Files, i.e, one 'KEY=VALUE' entry per line.

positional arguments:
  yaml_files  YAML files that should be converted

options:
  -h, --help  show this help message and exit
  -s, --sort  sort config options lexicographically

License

Licensed under the EUPL-1.2-or-later.