-
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
Adding secrets cat
command and removing secrets get
command
#282
Conversation
1961d58
to
24bcc4f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some changes needed. I made some comments but also address what we discussed.
Weird, I replied to your question as part of a new review so it posted it twice. |
[aryanj@matrix-34xx:~]$ cat file1 nofile file2
content1
cat: nofile: No such file or directory
content2
[aryanj@matrix-34xx:~]$ cat file1 nofile file2 | cat
cat: nofile: No such file or directory
content1
content2 This implementation directly streams contents to [aryanj@matrix-34xx:~]$ polykey secrets cat vault:file1 vault:nofile vault:file2
content1
ErrorSecretsSecretUndefined: nofile: No such file or directory
content2
[aryanj@matrix-34xx:~]$ polykey secrets cat vault:file1 vault:nofile vault:file2 | cat
content1
ErrorSecretsSecretUndefined: nofile: No such file or directory
content2 It looks like the command is not doing anything, but if we redirect [aryanj@matrix-34xx:~]$ cat file1 nofile file2 2> /dev/null
content1
content2
[aryanj@matrix-34xx:~]$ polykey secrets cat vault:file1 vault:nofile vault:file2 2> /dev/null
content1
content2 We currently don't detect if piping is being done or not, and we don't have a way of replicating this behaviour. |
|
Yes, that is what I am currently doing. Brian mentioned writing the streamed contents we receive into a temporary file, and then stream the file's contents to |
0cb0d17
to
23f872d
Compare
feat: removed Secrets/CommandGet and added tests chore: working on stdin test bug: working on adding test for stdin to stdout bug: still working on that error chore: fixed stdin test feat: updated secrets edit with new secrets get RPC fix: build chore: updated way of specifying multiple files chore: simplified tests chore: undefined files are gracefully ignored chore: updated implementation to use metadata flags chore: version bump fix: tests fix: package lock fix: npmdepshash
23f872d
to
5b60762
Compare
Try not to mix up what I said. |
All the checks have been passed, all the tasks have been finished, and the PR has also been approved. Merging. |
Yes. I can actually edit the recording itself to remove the captured autosuggest lines. I will do this and upload the new recording when I next work. |
I have edited the GIF to not include autocompletion anymore. I have also sped it up a little bit. @CMCDragonkai I will be attaching the raw |
Description
This PR tracks the status of implementing
secrets cat
command, which can be used to concatenate multiple secrets together.Issues Fixed
secrets cat
command #243Tasks
secrets cat
commandsecrets get
commandstdin
to stdout if no arguments are providedFinal checklist