Documentation
¶
Index ¶
- 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 Loop
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReadline ¶
func PrintWelcomeBanner ¶
func StdinIsTerminal ¶
func StdinIsTerminal() bool
Types ¶
type Loop ¶
type Loop struct {
RL *readline.Instance
Out io.Writer
Ctx context.Context
CompleteEnv replcomplete.ReplCompleteEnv
FinishSessionLoad func()
RefreshPrompt func()
RefreshPromptContinue func()
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)
}
Click to show internal directories.
Click to hide internal directories.