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
i've recently discovered yq, i've been using jq for quite some time now, one thing i would like for it to do is be able to exec out...for example:
yaml:
this: load("cat /etc/motd")
this example would assign this the contents of the /etc/motd file. This is a simple example, my main use case is exec-ing out to get hashicorp vault values for credentials and things. something like:
yaml:
user: load("vault kv get -field=role kv/value")
pwd: load("vault kv get -field=password kv/value")
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
i've recently discovered yq, i've been using jq for quite some time now, one thing i would like for it to do is be able to exec out...for example:
this example would assign this the contents of the /etc/motd file. This is a simple example, my main use case is exec-ing out to get hashicorp vault values for credentials and things. something like:
basically return stdout of a system call.
Beta Was this translation helpful? Give feedback.
All reactions