You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is I cannot easily parse multi-line values. As you can see the SVC_KEY_P12 comes across 4 separate lines (though really a P12 would be many more than 4 lines), but there's not really a way to tell that that all of that is a single variable since every each variable is on it's own new line, making it looks like it's a separate variable.
The text was updated successfully, but these errors were encountered:
Envconsul is designed to export string values into the environment. You could shove a whole JSON object into it with some work (escaping quoting might be an issue... not sure), but ideally it would be better to have those JSON values pre-split into separate fields in consul so you could load them into separate environment variables (eg. MY_SERVICE_URL, SVC_KEY_P12 would be separate entries).
If you really want to work with something in a JSON format it sounds like you might be more interested in using consul-template for this as it has features to let you output data in a JSON format.
Expected behavior
I would like to be able to format the output of
envconsul env
. Currently it outputs the following:Actual behavior
I would like to print in JSON or some other easily parsable format, ie:
The issue is I cannot easily parse multi-line values. As you can see the SVC_KEY_P12 comes across 4 separate lines (though really a P12 would be many more than 4 lines), but there's not really a way to tell that that all of that is a single variable since every each variable is on it's own new line, making it looks like it's a separate variable.
The text was updated successfully, but these errors were encountered: