sekrit: bake in clipboard support with cp subcommand
This commit is contained in:
parent
540f26be40
commit
4657adf4b1
2 changed files with 52 additions and 11 deletions
33
bin/sekrit.1
33
bin/sekrit.1
|
|
@ -1,6 +1,6 @@
|
|||
.\"
|
||||
.\" sekrit.1
|
||||
.\" Written in 2018 by Lucas
|
||||
.\" Written in 2018,2020 by Lucas
|
||||
.\" CC0 1.0 Universal/Public domain - No rights reserved
|
||||
.\"
|
||||
.\" To the extent possible under law, the author(s) have dedicated all
|
||||
|
|
@ -10,28 +10,32 @@
|
|||
.\" Dedication along with this software. If not, see
|
||||
.\" <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
.\"
|
||||
.Dd September 25, 2018
|
||||
.Dd May 25, 2020
|
||||
.Dt SEKRIT 1
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm sekrit
|
||||
.Nd Secret files manager
|
||||
.Sh SYNOPSIS
|
||||
.Nm sekrit
|
||||
.Nm
|
||||
.Cm add
|
||||
.Ar key
|
||||
.Op Ar value ...
|
||||
.Nm sekrit
|
||||
.Nm
|
||||
.Cm cp
|
||||
.Op Fl k
|
||||
.Op key
|
||||
.Nm
|
||||
.Cm gen
|
||||
.Op Fl l Ar length
|
||||
.Op Ar chars
|
||||
.Nm sekrit
|
||||
.Nm
|
||||
.Cm get
|
||||
.Ar key
|
||||
.Nm sekrit
|
||||
.Nm
|
||||
.Cm has
|
||||
.Ar key
|
||||
.Nm sekrit
|
||||
.Nm
|
||||
.Cm ls
|
||||
.Op Ar keys ...
|
||||
.Sh DESCRIPTION
|
||||
|
|
@ -61,6 +65,14 @@ will read the value from standard input.
|
|||
will fail if
|
||||
.Ar key
|
||||
already has a value.
|
||||
.It Nm Cm cp Oo Fl k Oc Ar key
|
||||
Decrypts the value associated with
|
||||
.Ar key
|
||||
and copies it to the clipboard with
|
||||
.Xr xclip 1 .
|
||||
It removes the last newline unless
|
||||
.Fl k
|
||||
is given.
|
||||
.It Nm Cm gen Oo Fl l Ar length Oc Op Ar chars
|
||||
Outputs a randomly generated sequence.
|
||||
The generated sequence consist of characters
|
||||
|
|
@ -122,9 +134,12 @@ in
|
|||
.Ar example.com
|
||||
you can run
|
||||
.Bd -literal -offset indent
|
||||
sekrit get accounts/example.com/user | xclip -l 1 -sel clip -q
|
||||
sekrit get accounts/example.com/pass | xclip -l 1 -sel clip -q
|
||||
sekrit cp accounts/example.com/user
|
||||
sekrit cp accounts/example.com/pass
|
||||
.Ed
|
||||
.Sh SEE ALSO
|
||||
.Xr gpg2 1 ,
|
||||
.Xr xclip 1
|
||||
.Sh AUTHORS
|
||||
.An Lucas
|
||||
.Sh LICENSE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue