Skip to content
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

feat: melt from pipe and to STDOUT #18

Merged
merged 8 commits into from
May 6, 2022
Merged

feat: melt from pipe and to STDOUT #18

merged 8 commits into from
May 6, 2022

Conversation

caarlos0
Copy link
Member

@caarlos0 caarlos0 commented May 5, 2022

allows to backup from a pipe, e.g.:

cat mykey | melt

It'll also allow to restore to STDOUT:

melt restore --seed "seed words" -
cat seed | melt restore -

So you can now do things like:

cat ~/.ssh/id_ed25519 | melt | melt restore -

which is not useful at all, but you could pipe it to/from charm once charmbracelet/charm#139 is done

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@caarlos0 caarlos0 self-assigned this May 5, 2022
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@caarlos0 caarlos0 marked this pull request as ready for review May 6, 2022 01:34
@caarlos0 caarlos0 added the enhancement New feature or request label May 6, 2022
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@caarlos0 caarlos0 changed the title feat: melt from pipe feat: melt from pipe and to STDOUT May 6, 2022
@caarlos0 caarlos0 merged commit 3e6fbcf into main May 6, 2022
@caarlos0 caarlos0 deleted the backup-from-stdout branch May 6, 2022 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants