commit 6f8a6c4460ae91a2c48a4296cc20b3a4fcc944ca
parent bb058a0cee6bb739b61b1da7dfde23db44925e06
Author: Sean Enck <sean@ttypty.com>
Date: Sat, 24 Dec 2022 11:45:42 -0500
renaming
Diffstat:
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/cmd/main.go b/cmd/main.go
@@ -247,7 +247,7 @@ func run() error {
}
entry := args[2]
if command == cli.StatsCommand {
- v, err := t.Get(entry, backend.TimeValue)
+ v, err := t.Get(entry, backend.StatsValue)
if err != nil {
return wrapped("unable to get stats", err)
}
diff --git a/cmd/vers.txt b/cmd/vers.txt
@@ -1 +1 @@
-v22.12.04
-\ No newline at end of file
+v22.12.05
+\ No newline at end of file
diff --git a/internal/backend/query.go b/internal/backend/query.go
@@ -129,9 +129,9 @@ func (t *Transaction) QueryCallback(args QueryOptions) ([]QueryEntity, error) {
switch args.Values {
case SecretValue:
entity.Value = val
- case HashedValue, TimeValue:
+ case HashedValue, StatsValue:
t := getValue(e.backing, modTimeKey)
- if args.Values == TimeValue {
+ if args.Values == StatsValue {
entity.Value = t
} else {
if t != "" {
diff --git a/internal/backend/types.go b/internal/backend/types.go
@@ -89,8 +89,8 @@ const (
HashedValue
// SecretValue will have the raw secret onboard
SecretValue
- // TimeValue will show the last modification time
- TimeValue
+ // StatsValue will show the last modification time
+ StatsValue
)
const (