From 21357e1260207f6b447f978878278125e042f96d Mon Sep 17 00:00:00 2001 From: Snider Date: Sun, 1 Feb 2026 16:09:02 +0000 Subject: [PATCH] docs(process): add docstrings to Logger interface methods Add missing documentation to Logger interface methods and NopLogger implementation to satisfy 80% docstring coverage threshold. Co-Authored-By: Claude --- pkg/process/exec/logger.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/process/exec/logger.go b/pkg/process/exec/logger.go index 0892d798..e8f5a6b4 100644 --- a/pkg/process/exec/logger.go +++ b/pkg/process/exec/logger.go @@ -3,14 +3,19 @@ package exec // Logger interface for command execution logging. // Compatible with pkg/log.Logger and other structured loggers. type Logger interface { + // Debug logs a debug-level message with optional key-value pairs. Debug(msg string, keyvals ...any) + // Error logs an error-level message with optional key-value pairs. Error(msg string, keyvals ...any) } // NopLogger is a no-op logger that discards all messages. type NopLogger struct{} +// Debug discards the message (no-op implementation). func (NopLogger) Debug(string, ...any) {} + +// Error discards the message (no-op implementation). func (NopLogger) Error(string, ...any) {} var defaultLogger Logger = NopLogger{}