aboutsummaryrefslogtreecommitdiffstats
path: root/doc/passextract.1
blob: 5fd7c7e8f306a0ff47f2d9afd3f689c92d9c8360 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
'\" t
.\"     Title: passextract
.\"    Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
.\"      Date: 08/20/2022
.\"    Manual: \ \&
.\"    Source: \ \&
.\"  Language: English
.\"
.TH "PASSEXTRACT" "1" "08/20/2022" "\ \&" "\ \&"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
passextract \- Copy login details from pass(1)
.SH "SYNOPSIS"
.sp
\fBpassextract\fR [\fIOPTIONS\fR] [\fIPASS_FILE\fR]
.SH "DESCRIPTION"
.sp
An extension to the pass(1) password manager\&. Passextract provides a UI similar to urlview(2) that enables these additional fields to be copied to the system clipboard\&. Three fields are recognised: emails, usernames, and passwords\&. They are defined as follows:
.sp
.if n \{\
.RS 4
.\}
.nf
This text is ignored
.fi
.if n \{\
.RE
.\}
.sp
.if n \{\
.RS 4
.\}
.nf
e: email@example\&.com
u: username
p: secret\-password
.fi
.if n \{\
.RE
.\}
.sp
In order to be recognised by Passextract, those fields must be prefixed by \(lqe: \(rq, \(lqu: \(rq, or \(lqp: \(rq as illustrated above\&.
.sp
The passextract(1) command will parse those fields from \fIPASS_FILE\fR\&. If \fIPASS_FILE\fR is not provided or if it\(cqs \fI\-\fR then the standard input is used\&.
.SH "OPTIONS"
.PP
\-i
.RS 4
Make password strings invisible by replacing them with stars ("*")\&.
.RE
.PP
\-V, \-\-version
.RS 4
Print the program version\&.
.RE
.SH "INTERACTIVE CONTROL"
.sp
In the interactive UI, the following commands are available:
.PP
q / C\-c
.RS 4
Quit and clear the clipboard
.RE
.PP
j
.RS 4
Move the selection down
.RE
.PP
k
.RS 4
Move the selection up
.RE
.PP
g
.RS 4
Move the selection to the top
.RE
.PP
G
.RS 4
Move the selection to the bottom
.RE
.PP
ENTER
.RS 4
Copy the currently selected line
.RE
.SH "EXAMPLES"
.sp
Passextract can be invoked on its own or with the piped output of \fBpass show\fR\&.
.sp
.if n \{\
.RS 4
.\}
.nf
$ pass show github\&.com | passextract
$ passextract github\&.com
.fi
.if n \{\
.RE
.\}
.sp
The included Bash completion file provides the same tab completion options as \fBpass show\fR\&.
.SH "SHELL COMPLETION"
.sp
Shell completion is provided to complete pass(1) files\&. To enable Bash completion, source the included \fBpassextract\&.bash\-completion\fR file\&.