Skip to content

Secret editor on the CLI #78

@robert-cronin

Description

@robert-cronin

This issue is based on #30 (comment)
Basically we want to be able to do something like

pk secrets ed vault1:secret1

and have it open in the default editor.

Here is how you do it in shell:

tmpfile=$(mktemp /tmp/abc.XXXXXX)
exec {fd}<> "$tmpfile"
rm -f "$tmpfile"
vim "/proc/self/fd/$fd"
cat <&${fd}

we just need to figure out how to have it triggered in JavaScript

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions