fix(complete-module): logging

This commit is contained in:
Adictya
2025-05-15 08:46:40 +05:30
committed by Adam
parent 15bf40bc10
commit 3ee213081e
6 changed files with 16 additions and 12 deletions

View File

@@ -11,6 +11,7 @@ import (
"time"
"github.com/bmatcuk/doublestar/v4"
"github.com/sst/opencode/internal/status"
)
var (
@@ -22,12 +23,12 @@ func init() {
var err error
rgPath, err = exec.LookPath("rg")
if err != nil {
// logging.("Ripgrep (rg) not found in $PATH. Some features might be limited or slower.")
status.Warn("Ripgrep (rg) not found in $PATH. Some features might be limited or slower.")
rgPath = ""
}
fzfPath, err = exec.LookPath("fzf")
if err != nil {
// logging.Warn("FZF not found in $PATH. Some features might be limited or slower.")
status.Warn("FZF not found in $PATH. Some features might be limited or slower.")
fzfPath = ""
}
}