lockbox

password manager
Log | Files | Refs | README | LICENSE

commit bb058a0cee6bb739b61b1da7dfde23db44925e06
parent a7d4ca34d0dab747b6ae6764d74c22bf8e25f5ec
Author: Sean Enck <sean@ttypty.com>
Date:   Sat, 24 Dec 2022 11:11:49 -0500

making stats available

Diffstat:
Mcmd/vers.txt | 4++--
Minternal/cli/core.go | 3++-
Minternal/cli/core_test.go | 2+-
3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/cmd/vers.txt b/cmd/vers.txt @@ -1 +1 @@ -v22.12.03 -\ No newline at end of file +v22.12.04 +\ No newline at end of file diff --git a/internal/cli/core.go b/internal/cli/core.go @@ -166,7 +166,7 @@ func BashCompletions(defaults bool) ([]string, error) { c.CanClip = isClip c.ReadOnly = isReadOnly c.CanTOTP = isTOTP - options := []string{EnvCommand, FindCommand, HelpCommand, ListCommand, ShowCommand, VersionCommand} + options := []string{EnvCommand, FindCommand, HelpCommand, ListCommand, ShowCommand, VersionCommand, StatsCommand} if c.CanClip { options = append(options, ClipCommand) } @@ -208,6 +208,7 @@ func Usage() ([]string, error) { results = append(results, command(MoveCommand, "src dst", "move an entry from one location to another with the store")) 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(StatsCommand, "entry", "display entry detail information")) results = append(results, command(TOTPCommand, "entry", "display an updating totp generated code")) results = append(results, subCommand(TOTPCommand, TOTPClipCommand, "entry", "copy totp code to clipboard")) results = append(results, subCommand(TOTPCommand, TOTPListCommand, "", "list entries with totp settings")) diff --git a/internal/cli/core_test.go b/internal/cli/core_test.go @@ -9,7 +9,7 @@ import ( func TestUsage(t *testing.T) { u, _ := cli.Usage() - if len(u) != 20 { + if len(u) != 21 { t.Errorf("invalid usage, out of date? %d", len(u)) } }