Convert Spring configuration property names to environment variable names.
The easiest way to use p2e
is via JBang.
$ jbang p2e@helpermethod spring.application.name
# outputs SPRING_APPLICATION_NAME
Alternatively, you can install p2e
as a native image with Homebrew.
$ brew tap helpermethod/tap
$ brew install p2e
$ p2e spring.application.name
# outputs SPRING_APPLICATION_NAME