adding a --no-headers flag to the flux get commands #1562
Answered
by
stefanprodan
jack-evans
asked this question in
Proposals
-
this is similar to what kubectl command line exposes. Currently in flux, you get the following:
what I am proposing is that adding a
This would then allow a user to use scripting to automate processes, an example being: sources=$(flux get source git --no-headers | awk '{print $1}')
while IFS=$'\n' read -r my_source; do
flux reconcile source git "${my_source}"
done <<< "${sources}" If we are looking for something more generic we could use something like --output and allow the end user to go templating? |
Beta Was this translation helpful? Give feedback.
Answered by
stefanprodan
Jul 5, 2021
Replies: 1 comment 2 replies
-
I think |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
jack-evans
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think
--no-headers
would be a good addition to the CLI, I have opened an issue for this request. Thanks @jack-evans