From 6eaa71ba0d7c0b56853860c2f1eb43096dd928e7 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 23 Mar 2026 22:30:42 +0200 Subject: Replace global variable with function in internal/repl --- internal/repl/repl_completer_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/repl/repl_completer_test.go') 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 -- cgit v1.2.3