-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raw arguments from files #1540
Comments
@pkoppstein The encoding issue is an important point, but if it becomes a nuisance I can apply
That doesn't resolve the central problem, though, of the sensitive information appearing on
|
@phs - Sorry, I meant to ask whether you couldn't use
and you'd use |
@pkoppstein I suppose if we're already
|
... or let jq do the walking:
|
I stumbled into something similar. How about making |
I'm hitting this where I'm trying to use jq to wrap markdown in a json wrapper to post to github. It works most of the time, except when I hit: |
Indeed, but it's difficult to imagine a scenario that would require a large number of invocations being necessary "just to wrap the content". In fact I'd venture to say that it's likely you have either not understood or not considered the relevant options. If you would like further assistance, please give further details about the problem at hand, preferably on stackoverflow.com using the jq tag and following the guidelines at http://stackoverflow.com/help/mcve |
I have a use-case that needs to construct json (a kubernetes secret) from multiple sensitive "raw" inputs. This almost fits the purpose of
--arg
, except that I want to avoid placing my secret values on the process ARGV:Since the secrets are being streamed in from a pipe, I (faintly) hoped I could somehow combine
--raw-input
with--slurpfile
, similar to how--raw-input
interacts with--slurp
:Unfortunately
--slurpfile
does not take the hint, and insists its input stream be legal json texts.Is there a way to bind whole, raw files to arguments? I'm not convinced there isn't already a way given the richness of the language, but for the life of me I don't see it.
The text was updated successfully, but these errors were encountered: