Here's my version, as coded last night while half asleep... I can see a couple of things to improve but thought I'd send it as-is so you can decide which approach you prefer.
As you can see, my version supports both file input and stdin.
Closes #5.
caesar/keyoxide-cli:file-input into main Here's my version, as coded last night while half asleep... I can see a couple of things to improve but thought I'd send it as-is so you can decide which approach you prefer.
As you can see, my version supports both file input and stdin.
Closes #5.
I guess tests should also be added, but for that we'll need to add a test key into the repo to use in the tests.
Whaaaat, you can readFileSync(stdin)? Yeah, this approach seems much better than mine. Will study a bit more and then merge!
Whaaaat, you can
readFileSync(stdin)? Yeah, this approach seems much better than mine. Will study a bit more and then merge!
Indeed, but there is a limit (I think platform dependent) on how big the input can be before you have to start using stream methods to read it.
It worked for every key I tested it on, but it's something to be aware of if we get any bug reports about failing to read properly from stdin with very large keys.
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?