lockbox

password manager
Log | Files | Refs | README | LICENSE

commit c189636a51b1c771de493c2043af35c284d8732c
parent e7a39aa97079110861bbfccccf5c09e78d05421c
Author: Sean Enck <sean@ttypty.com>
Date:   Sat, 14 Jun 2025 09:29:18 -0400

build with nofeatures

Diffstat:
Mcmd/lb/main_test.go | 6++++--
Mcmd/lb/tests/expected.log | 2++
Mjustfile | 1+
3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/cmd/lb/main_test.go b/cmd/lb/main_test.go @@ -358,8 +358,10 @@ func test(profile string) error { r.section("features") feature := func(cmd, flag string) { executable := fmt.Sprintf("no%s", flag) - r.feature(cmd, executable, "") - r.feature("help verbose", executable, fmt.Sprintf("| grep '%s'", flag)) + for _, e := range []string{executable, "nofeatures"} { + r.feature(cmd, e, "") + r.feature("help verbose", e, fmt.Sprintf("| grep '%s'", flag)) + } } feature("clip abc", "clip") feature("totp ls", "totp") diff --git a/cmd/lb/tests/expected.log b/cmd/lb/tests/expected.log @@ -332,4 +332,6 @@ LOCKBOX_STORE=testdata/datadir/pass.kdbx LOCKBOX_TOTP_TIMEOUT=1 features unable to get clipboard: clip feature is disabled +unable to get clipboard: clip feature is disabled +totp feature is disabled totp feature is disabled diff --git a/justfile b/justfile @@ -25,6 +25,7 @@ tests: features features: build just tags=noclip object={{target}}/lb-noclip just tags=nototp object={{target}}/lb-nototp + just tags=noclip,nototp object={{target}}/lb-nofeatures clean: rm -f "{{object}}"