summaryrefslogtreecommitdiff
path: root/internal/repl/repl_completer_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-23 22:30:42 +0200
committerPaul Buetow <paul@buetow.org>2026-03-23 22:30:42 +0200
commit6eaa71ba0d7c0b56853860c2f1eb43096dd928e7 (patch)
treef328cb2bc31dca6524d8bf78c6c4e43d1ffb3cb0 /internal/repl/repl_completer_test.go
parentbd4750a4094ba8c6cddb6559e4599df2c068ced9 (diff)
Replace global variable with function in internal/repl
Diffstat (limited to 'internal/repl/repl_completer_test.go')
-rw-r--r--internal/repl/repl_completer_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/repl/repl_completer_test.go b/internal/repl/repl_completer_test.go
index 997d303..861256a 100644
--- a/internal/repl/repl_completer_test.go
+++ b/internal/repl/repl_completer_test.go
@@ -45,7 +45,7 @@ func TestCompleterLogic(t *testing.T) {
t.Run(tc.name, func(t *testing.T) {
// Simulate the completer logic
var found bool
- for _, cmd := range builtinCommands {
+ for _, cmd := range builtinCommands() {
if strings.HasPrefix(strings.ToLower(cmd), strings.ToLower(tc.text)) {
found = true
break