commit ca667fd78ebadf33ca89ba196040c5f70b1f4363
parent cb17aeefad0a95a2c94825ba33a87ef7b982352a
Author: Sean Enck <sean@ttypty.com>
Date: Sat, 7 Jun 2025 19:43:55 -0400
linting/cleanup
Diffstat:
9 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/internal/app/commands/core.go b/internal/app/commands/core.go
@@ -55,8 +55,10 @@ const (
// Unset indicates a value should be unset (removed) from an entity
Unset = "unset"
// Groups handles getting a list of groups
- Groups = "groups"
- TOTPURL = "url"
+ Groups = "groups"
+ // TOTPURL will display TOTP URL information
+ TOTPURL = "url"
+ // TOTPSeed will display the seed for the TOTP tokens
TOTPSeed = "seed"
)
diff --git a/internal/app/help/core.go b/internal/app/help/core.go
@@ -11,8 +11,8 @@ import (
"text/template"
"git.sr.ht/~enckse/lockbox/internal/app/commands"
- "git.sr.ht/~enckse/lockbox/internal/kdbx"
"git.sr.ht/~enckse/lockbox/internal/config"
+ "git.sr.ht/~enckse/lockbox/internal/kdbx"
"git.sr.ht/~enckse/lockbox/internal/output"
)
diff --git a/internal/app/list_test.go b/internal/app/list_test.go
@@ -7,8 +7,8 @@ import (
"testing"
"git.sr.ht/~enckse/lockbox/internal/app"
- "git.sr.ht/~enckse/lockbox/internal/kdbx"
"git.sr.ht/~enckse/lockbox/internal/config/store"
+ "git.sr.ht/~enckse/lockbox/internal/kdbx"
"git.sr.ht/~enckse/lockbox/internal/platform"
)
diff --git a/internal/app/totp.go b/internal/app/totp.go
@@ -61,6 +61,7 @@ const (
OnceTOTPMode
// URLTOTPMode will dump the URL details
URLTOTPMode
+ // SeedTOTPMode will show the TOTP URL seed
SeedTOTPMode
)
diff --git a/internal/kdbx/actions.go b/internal/kdbx/actions.go
@@ -1,4 +1,4 @@
-// Package backend handles kdbx interactions
+// Package kdbx handles kdbx interactions
package kdbx
import (
diff --git a/internal/kdbx/actions_test.go b/internal/kdbx/actions_test.go
@@ -6,8 +6,8 @@ import (
"path/filepath"
"testing"
- "git.sr.ht/~enckse/lockbox/internal/kdbx"
"git.sr.ht/~enckse/lockbox/internal/config/store"
+ "git.sr.ht/~enckse/lockbox/internal/kdbx"
"git.sr.ht/~enckse/lockbox/internal/platform"
)
diff --git a/internal/kdbx/core.go b/internal/kdbx/core.go
@@ -1,4 +1,4 @@
-// Package backend handles kdbx interactions
+// Package kdbx handles kdbx interactions
package kdbx
import (
diff --git a/internal/kdbx/query.go b/internal/kdbx/query.go
@@ -1,4 +1,4 @@
-// Package backend handles querying a store
+// Package kdbx handles querying a store
package kdbx
import (
diff --git a/internal/kdbx/query_test.go b/internal/kdbx/query_test.go
@@ -6,8 +6,8 @@ import (
"strings"
"testing"
- "git.sr.ht/~enckse/lockbox/internal/kdbx"
"git.sr.ht/~enckse/lockbox/internal/config/store"
+ "git.sr.ht/~enckse/lockbox/internal/kdbx"
)
func compareEntity(actual *kdbx.Entity, expect kdbx.Entity) bool {