lockbox

password manager
Log | Files | Refs | README | LICENSE

commit 8112150267a3c521c08cee72057239890265d348
parent 88740fdec2b54469752cba7e94c37f134a8c9988
Author: Sean Enck <sean@ttypty.com>
Date:   Sun,  8 Jun 2025 07:40:57 -0400

rename clear -> clipmanager

Diffstat:
Mcmd/lb/main.go | 2+-
Minternal/app/commands/core.go | 4++--
Minternal/platform/clip/core.go | 2+-
3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/cmd/lb/main.go b/cmd/lb/main.go @@ -47,7 +47,7 @@ func handleEarly(command string, args []string) (bool, error) { } fmt.Printf("version: %s\n", vers) return true, nil - case commands.Clear: + case commands.ClipManager: return true, clearClipboard() } return false, nil diff --git a/internal/app/commands/core.go b/internal/app/commands/core.go @@ -6,8 +6,8 @@ const ( TOTP = "totp" // Conv handles text conversion of the data store Conv = "conv" - // Clear is a callback to manage clipboard clearing - Clear = "clear" + // ClipManager is a callback to manage clipboard clearing + ClipManager = "clipmanager" // Clip will copy values to the clipboard Clip = "clip" // Insert adds a value diff --git a/internal/platform/clip/core.go b/internal/platform/clip/core.go @@ -88,7 +88,7 @@ func (c Board) CopyTo(value string) error { pipeTo(cmd, value, true, args...) if value != "" { fmt.Printf("clipboard will clear in %d seconds\n", c.MaxTime) - pipeTo(commands.Executable, value, false, "clear") + pipeTo(commands.Executable, value, false, commands.ClipManager) } return nil }