lockbox

password manager
Log | Files | Refs | README | LICENSE

commit a99b49ee14a55820405973b2dc43f9a3b607e708
parent b02956082b96f80321b03e33acb6c94f19290637
Author: Sean Enck <sean@ttypty.com>
Date:   Fri, 15 Jul 2022 18:13:42 -0400

renaming Find->List

Diffstat:
Mcmd/lb-rekey/main.go | 2+-
Mcmd/lb/main.go | 4++--
Minternal/utils.go | 4++--
3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/cmd/lb-rekey/main.go b/cmd/lb-rekey/main.go @@ -14,7 +14,7 @@ func main() { inMode := flag.String("inmode", "", "input encryption key mode") outMode := flag.String("outmode", "", "output encryption key mode") flag.Parse() - found, err := internal.Find(internal.GetStore(), false) + found, err := internal.List(internal.GetStore(), false) if err != nil { internal.Die("failed finding entries", err) } diff --git a/cmd/lb/main.go b/cmd/lb/main.go @@ -78,7 +78,7 @@ func main() { } searchTerm = args[2] } - files, err := internal.Find(store, true) + files, err := internal.List(store, true) if err != nil { internal.Die("unable to list files", err) } @@ -176,7 +176,7 @@ func main() { entries := []string{inEntry} if strings.Contains(inEntry, "*") { if inEntry == getEntry(store, []string{"***"}, 0) { - all, err := internal.Find(store, false) + all, err := internal.List(store, false) if err != nil { internal.Die("unable to get all files", err) } diff --git a/internal/utils.go b/internal/utils.go @@ -77,8 +77,8 @@ func GetStore() string { return os.Getenv("LOCKBOX_STORE") } -// Find will find all lockbox files in a directory store. -func Find(store string, display bool) ([]string, error) { +// List will get all lockbox files in a directory store. +func List(store string, display bool) ([]string, error) { var results []string if !PathExists(store) { return nil, NewLockboxError("store does not exists")