lockbox

password manager
Log | Files | Refs | README | LICENSE

commit d3d17e5a28d9a049b1857318e36f35543bdd5159
parent f6736cd7122936cbd1de482bed613646b3dbd70b
Author: Sean Enck <sean@ttypty.com>
Date:   Sat, 29 Jul 2023 08:36:36 -0400

rekey can show up in normal help

Diffstat:
Minternal/app/core.go | 1+
Minternal/app/core_test.go | 4++--
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/internal/app/core.go b/internal/app/core.go @@ -190,6 +190,7 @@ func Usage(verbose bool, exe string) ([]string, error) { results = append(results, command(ListCommand, "", "list entries")) results = append(results, command(MoveCommand, "src dst", "move an entry from source to destination")) results = append(results, command(MultiLineCommand, "entry", "insert a multiline entry into the store")) + results = append(results, command(ReKeyCommand, "", "rekey/reinitialize the database credentials")) results = append(results, command(RemoveCommand, "entry", "remove an entry from the store")) results = append(results, command(ShowCommand, "entry", "show the entry's value")) results = append(results, command(TOTPCommand, "entry", "display an updating totp generated code")) diff --git a/internal/app/core_test.go b/internal/app/core_test.go @@ -9,11 +9,11 @@ import ( func TestUsage(t *testing.T) { u, _ := app.Usage(false, "lb") - if len(u) != 24 { + if len(u) != 25 { t.Errorf("invalid usage, out of date? %d", len(u)) } u, _ = app.Usage(true, "lb") - if len(u) != 99 { + if len(u) != 100 { t.Errorf("invalid verbose usage, out of date? %d", len(u)) } for _, usage := range u {