mirror of
https://github.com/ollama/ollama.git
synced 2026-04-18 00:54:05 +02:00
launch: add openclaw channels setup (#15407)
This commit is contained in:
@@ -80,7 +80,9 @@ exit 0
|
||||
withConfirm := func(t *testing.T, fn func(prompt string) (bool, error)) {
|
||||
t.Helper()
|
||||
oldConfirm := DefaultConfirmPrompt
|
||||
DefaultConfirmPrompt = fn
|
||||
DefaultConfirmPrompt = func(prompt string, options ConfirmOptions) (bool, error) {
|
||||
return fn(prompt)
|
||||
}
|
||||
t.Cleanup(func() { DefaultConfirmPrompt = oldConfirm })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user