Skip to content

Commit

Permalink
Update modules
Browse files Browse the repository at this point in the history
  • Loading branch information
pepa65 committed Mar 6, 2024
1 parent 7829569 commit 489e6a8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# twofat
## Manage TOTPs from CLI
* **v1.0.0**
* **v1.0.1**
* Repo: [github.com/pepa65/twofat](https://github.com/pepa65/twofat)
* After: [github.com/slandx/tfat](https://github.com/slandx/tfat)
* Contact: github.com/pepa65
Expand Down Expand Up @@ -49,7 +49,7 @@ CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o twofat.exe

## Usage
```
twofat v1.0.0 - Manage TOTPs from CLI
twofat v1.0.1 - Manage TOTPs from CLI
The CLI is interactive & colorful, output to Stderr. SECRET can be piped in.
When output is redirected, only pertinent plain text is going to Stdout.
* Repo: github.com/pepa65/twofat <pepa65@passchier.net>
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ go 1.21.5

require (
github.com/atotto/clipboard v0.1.4
golang.org/x/crypto v0.19.0
golang.org/x/term v0.17.0
golang.org/x/crypto v0.21.0
golang.org/x/term v0.18.0
)

require golang.org/x/sys v0.17.0 // indirect
require golang.org/x/sys v0.18.0 // indirect
12 changes: 6 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z4=
github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI=
golang.org/x/crypto v0.19.0 h1:ENy+Az/9Y1vSrlrvBSyna3PITt4tiZLf7sgCjZBX7Wo=
golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU=
golang.org/x/sys v0.17.0 h1:25cE3gD+tdBA7lp7QfhuV+rJiE9YXTcS3VG1SqssI/Y=
golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.17.0 h1:mkTF7LCd6WGJNL3K1Ad7kwxNfYAW6a8a8QqtMblp/4U=
golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk=
golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA=
golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs=
golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4=
golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.18.0 h1:FcHjZXDMxI8mM3nwhX9HlKop4C0YQvCVCdwYl2wOtE8=
golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58=
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
)

const (
version = "1.0.0"
version = "1.0.1"
maxNameLen = 20
period = 30
)
Expand Down Expand Up @@ -317,7 +317,7 @@ func renameEntry(name string, nname string) {
exitOnError(errr, "Entry '"+name+"' not found")
}

// Name exists, Newname doesn't
// NAME exists, NEWNAME doesn't
db.Entries[nname] = db.Entries[name]
delete(db.Entries, name)
err = saveDb(&db)
Expand Down Expand Up @@ -664,7 +664,7 @@ func main() {
}
}
if cmd == "" { // Determine command (from arg1)
switch arg { // First arg is command unless regex or dash-dash (arg1)
switch arg { // First arg is command unless regex (arg1)
case "help", "--help", "-h":
usage("")
case "version", "--version", "-V":
Expand Down Expand Up @@ -698,7 +698,7 @@ func main() {
}
continue
}
// self and cmd (or REGEX) and early -d/--datafile have been parsed
// self and cmd (or REGEX) and early -d/--datafile && double-dash have been parsed
switch cmd { // Parse rest of args based on cmd
case "p":
usage("password command takes no further arguments")
Expand Down

0 comments on commit 489e6a8

Please sign in to comment.