MCPcopy
hub / github.com/charmbracelet/bubbletea / ProgramOption

FuncType ProgramOption

options.go:17–17  ·  view source on GitHub ↗

ProgramOption is used to set options when initializing a Program. Program can accept a variable number of options. Example usage: p := NewProgram(model, WithInput(someInput), WithOutput(someOutput))

func(*Program)

Source from the content-addressed store, hash-verified

15//
16// p := NewProgram(model, WithInput(someInput), WithOutput(someOutput))
17type ProgramOption func(*Program)
18
19// WithContext lets you specify a context in which to run the Program. This is
20// useful if you want to cancel the execution from outside. When a Program gets

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…