cli

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package cli is the local CLI adapter for botbooter. It implements core.Adapter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(in io.Reader, out io.Writer) *core.Bot

New creates a CLI bot backed by the given reader and writer. A nil in or out defaults to os.Stdin or os.Stdout respectively.

Types

type Message added in v0.4.0

type Message struct {
	Text        string
	Attachments []core.Attachment
}

Message is the raw payload of a message read from the CLI adapter.

func RawData added in v0.2.0

func RawData(m *core.Message) (*Message, bool)

RawData returns the parsed CLI line carried on m, reporting whether m originated from the CLI adapter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL