-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Do not decrypt in-place #284
Comments
I will be implementing a disable for in-place as an arguement. I still believe the default should be to decrypt in-place. I am thinking something in terms of:
SOPS already supports redirecting the output to an editor, so for outputting the decrypted file, I think I can rely on the hosts EDITOR env. I will explore the options here, but I want to lean into the what could be expected if using sops outside of sail. I will add more information when I learn it. |
SOPS by default writes to stdout, and most CLIs do this. Sometimes you just want to inspect a secret variable, and doing a The CLI I respect your choice, and I might not really understand the most common use case for this yet. |
But maybe it makes sense to add a specific arguments in this case?
Would this work for you? |
Personally I have no use of the
|
Is this comment for another issue?
Nonetheless it seem like a good approach. |
No it was just to inform you that my examples would like change a bit from what is presented here :-) |
It would be optional :-) So what you suggest here would also be possible. Piping and stuff is just not for everyone, and I want to make it easier for people who find it easier with flag for it. Kind of like a very verbose shortcut, compared to piping which requires some more Linux/syntax knowledge to understand :-) |
Description
When decrypting files, do not overwrite the existing file. Either write to stdout, or write to another file.
I prefer printing the results to stdout, allowing the user to choose if I want to pipe to a file, or just see the results in the console.
Preconditions
No response
Expected work done
No response
Postconditions
When I decrypt a file, the results should be printed to stdout.
The text was updated successfully, but these errors were encountered: