Documentation
¶
Index ¶
- func CommonRunePrefixForTest(candidates [][]rune) []rune
- func NewReadline(defaultPrompt string) (*readline.Instance, func(string) (string, error), error)
- func PrintWelcomeBanner(out io.Writer, cfg *config.Root, model, projHex, projRoot string, ...)
- func Prompt(rl *readline.Instance, prompt string) (string, error)
- func Run(loop *Loop) error
- func StdinIsTerminal() bool
- func TryPasteImageAtCursor(stderr io.Writer, saveImage func() (tag string, err error), line []rune, ...) ([]rune, int, bool)
- type InputHistoryTest
- type Loop
- type MultilineEditorTest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommonRunePrefixForTest ¶ added in v2026.602.4
func NewReadline ¶
func PrintWelcomeBanner ¶
func StdinIsTerminal ¶
func StdinIsTerminal() bool
Types ¶
type InputHistoryTest ¶ added in v2026.602.4
type InputHistoryTest struct {
// contains filtered or unexported fields
}
func NewInputHistoryForTest ¶ added in v2026.602.4
func NewInputHistoryForTest() *InputHistoryTest
func (*InputHistoryTest) Add ¶ added in v2026.602.4
func (h *InputHistoryTest) Add(s string)
func (*InputHistoryTest) Next ¶ added in v2026.602.4
func (h *InputHistoryTest) Next() (string, bool)
type Loop ¶
type Loop struct {
RL *readline.Instance
Out io.Writer
Ctx context.Context
CompleteEnv replcomplete.ReplCompleteEnv
FinishSessionLoad func()
PromptPrimary func() string
PromptContinue func() string
HandleSlash func(line string) error
SlashDeps func() commands.Deps
OnUserMessage func(line string) error
ClipboardPasteForStdin func() (tag string, ok bool)
SaveClipboardImage func() (tag string, err error)
}
type MultilineEditorTest ¶ added in v2026.602.4
type MultilineEditorTest struct {
// contains filtered or unexported fields
}
func NewMultilineEditorForTest ¶ added in v2026.602.4
func NewMultilineEditorForTest(loop *Loop, history *InputHistoryTest, lines []string, row, col, width int) *MultilineEditorTest
func (*MultilineEditorTest) Col ¶ added in v2026.602.4
func (e *MultilineEditorTest) Col() int
func (*MultilineEditorTest) Complete ¶ added in v2026.602.4
func (e *MultilineEditorTest) Complete() bool
func (*MultilineEditorTest) Line ¶ added in v2026.602.4
func (e *MultilineEditorTest) Line(i int) string
func (*MultilineEditorTest) Row ¶ added in v2026.602.4
func (e *MultilineEditorTest) Row() int
func (*MultilineEditorTest) String ¶ added in v2026.602.4
func (e *MultilineEditorTest) String() string
func (*MultilineEditorTest) Up ¶ added in v2026.602.4
func (e *MultilineEditorTest) Up()
Click to show internal directories.
Click to hide internal directories.