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

clipboard module update and updated readme #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ By default the new key generates 6-digit codes; the `-7` and `-8` flags select

`2fa name` prints a two-factor authentication code from the key with the
given name. If `-clip` is specified, `2fa` also copies to the code to the system
clipboard.
clipboard. If you have a problems with `-clip` flag - check if you have installed any
any clipboard management utility like `xclip`.

For instance in Ubuntu:

sudo apt install xclip

With no arguments, `2fa` prints two-factor authentication codes from all
known time-based keys.
Expand Down Expand Up @@ -55,5 +60,5 @@ Then whenever GitHub prompts for a 2FA code, run 2fa to obtain one:
Or to type less:

$ 2fa
268346 github
268346 github
$
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module rsc.io/2fa

go 1.16

require github.com/atotto/clipboard v0.1.2
require github.com/atotto/clipboard v0.1.4
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github.com/atotto/clipboard v0.1.2 h1:YZCtFu5Ie8qX2VmVTBnrqLSiU9XOWwqNRmdT3gIQzbY=
github.com/atotto/clipboard v0.1.2/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI=
github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z4=
github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI=
22 changes: 22 additions & 0 deletions vendor/github.com/atotto/clipboard/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 48 additions & 0 deletions vendor/github.com/atotto/clipboard/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions vendor/github.com/atotto/clipboard/clipboard_plan9.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 55 additions & 4 deletions vendor/github.com/atotto/clipboard/clipboard_unix.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading