Closed zeroXten closed 9 years ago
Plan is to export to a default tar.gz file with the option to override the file using a switch (e.g. --file). If the switch value is - then the tar.gz is written to STDOTU so that it can be piped to openssl, GPG, keybase etc.
Sounds good.
On Tue Jan 27 2015 at 6:14:04 AM Fraser Scott notifications@github.com wrote:
Plan is to export to a default tar.gz file with the option to override the file using a switch (e.g. --file). If the switch value is - then the tar.gz is written to STDOTU so that it can be piped to openssl, GPG, keybase etc.
— Reply to this email directly or view it on GitHub https://github.com/pki-io/admin/issues/44#issuecomment-71653527.
I've created a little test script here: https://gist.github.com/zeroXten/c051facd275971194303
Example use here: https://gist.github.com/zeroXten/88267e7a935c545f7701
Just need to find a nice way of making it usable. I guess a function that takes an array of ExportFile structs as input.
Well, its in there now and used by "node show". Closing this ticket as we can raise individual issues as required.
Write tar.gz of selected data to default file, provided file or standard out.