lightbend / config

configuration library for JVM languages using HOCON files
https://lightbend.github.io/config/
6.15k stars 967 forks source link

Is it possible to get the output of a script and assign it to a key? #735

Open zqmmqz opened 3 years ago

zqmmqz commented 3 years ago

Hi,

I want to get the output from a script and assign it to a key like below, is it possible?

key: curl -s https://www.google.com | grep '<a href='
raboof commented 3 years ago

no - you could put the output of the script in an environment variable and refer to that environment variable from your config, though.