lockbox

password manager
Log | Files | Refs | README | LICENSE

commit 7867e1935643bde49eb1262c7bd192ac19185f3c
parent 2ac529f98b374c361e561325615de5750d23909d
Author: Sean Enck <sean@ttypty.com>
Date:   Sat,  4 Mar 2023 20:57:07 -0500

pgl updates

Diffstat:
Mcmd/main.go | 2+-
Mgo.mod | 2+-
Mgo.sum | 4++--
Minternal/app/core.go | 2+-
Minternal/backend/query.go | 4++--
Minternal/inputs/stdin.go | 2+-
Mscripts/testing/check.go | 6+++---
7 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/cmd/main.go b/cmd/main.go @@ -15,7 +15,7 @@ import ( "github.com/enckse/lockbox/internal/inputs" "github.com/enckse/lockbox/internal/platform" "github.com/enckse/lockbox/internal/totp" - "github.com/enckse/pgl/exit" + "github.com/enckse/pgl/os/exit" ) //go:embed "vers.txt" diff --git a/go.mod b/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/aymanbagabas/go-osc52 v1.2.2 - github.com/enckse/pgl v1.0.1 + github.com/enckse/pgl v1.0.3 github.com/pquerna/otp v1.4.0 github.com/tobischo/gokeepasslib/v3 v3.5.0 mvdan.cc/sh/v3 v3.6.0 diff --git a/go.sum b/go.sum @@ -9,8 +9,8 @@ github.com/boombuler/barcode v1.0.1 h1:NDBbPmhS+EqABEs5Kg3n/5ZNjy73Pz7SIV+KCeqyX github.com/boombuler/barcode v1.0.1/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/enckse/pgl v1.0.1 h1:97Fi62owoBwrlLTDl0oRy062btZamHVItw3wQJBxaGg= -github.com/enckse/pgl v1.0.1/go.mod h1:r5bqGzwqnJIeY6UbGT5u38keJ5+ZySlsWeaYYzdBhMg= +github.com/enckse/pgl v1.0.3 h1:Y2xUehaqndA9KZlgwFxcf3CARfoxUSZ0SajcazkbRkE= +github.com/enckse/pgl v1.0.3/go.mod h1:r5bqGzwqnJIeY6UbGT5u38keJ5+ZySlsWeaYYzdBhMg= github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= diff --git a/internal/app/core.go b/internal/app/core.go @@ -7,7 +7,7 @@ import ( "github.com/enckse/lockbox/internal/backend" "github.com/enckse/lockbox/internal/inputs" - "github.com/enckse/pgl/exit" + "github.com/enckse/pgl/os/exit" ) type ( diff --git a/internal/backend/query.go b/internal/backend/query.go @@ -8,7 +8,7 @@ import ( "sort" "strings" - "github.com/enckse/pgl/maps" + "github.com/enckse/pgl/types/collections" "github.com/tobischo/gokeepasslib/v3" ) @@ -71,7 +71,7 @@ func (t *Transaction) QueryCallback(args QueryOptions) ([]QueryEntity, error) { if args.Mode == noneMode { return nil, errors.New("no query mode specified") } - entities := maps.KeyedMap[string, QueryEntity]{} + entities := collections.Map[string, QueryEntity]{} isSort := args.Mode != ExactMode decrypt := args.Values != BlankValue err := t.act(func(ctx Context) error { diff --git a/internal/inputs/stdin.go b/internal/inputs/stdin.go @@ -8,7 +8,7 @@ import ( "strings" "syscall" - "github.com/enckse/pgl/stdin" + "github.com/enckse/pgl/os/stdin" ) func termEcho(on bool) { diff --git a/scripts/testing/check.go b/scripts/testing/check.go @@ -12,8 +12,8 @@ import ( "strings" "time" - "github.com/enckse/pgl/exit" - "github.com/enckse/pgl/paths" + "github.com/enckse/pgl/os/exit" + "github.com/enckse/pgl/os/paths" ) var yes = []string{"y"} @@ -211,7 +211,7 @@ func testClipboard(dataPath string, tries uint, wait uint) { } foundClipCount := 0 for _, f := range clipFiles { - if paths.Exists(f) { + if paths.Exist(f) { foundClipCount++ } }