diff --git a/README.md b/README.md index 9c96a85..4f41b19 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 diff --git a/go.mod b/go.mod index 790b183..38ff79a 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index d45f783..cc44961 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/main.go b/main.go index f1c9710..3b2c84d 100644 --- a/main.go +++ b/main.go @@ -23,7 +23,7 @@ import ( ) const ( - version = "1.0.0" + version = "1.0.1" maxNameLen = 20 period = 30 ) @@ -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) @@ -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": @@ -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")