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: 3 Imported by: 0

Documentation

Overview

Package cli exposes the local-CLI constructor and raw-message accessor for botbooter. Import it when your bot runs on the local CLI; it pulls in no platform SDK, so a CLI-only binary never compiles discordgo, slack-go or go-telegram.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(in io.Reader, out io.Writer) *botbooter.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 = cliint.Message

Message is the raw payload of a CLI message: the typed line plus any tokens that resolved to local-file attachments.

func RawData

func RawData(m *botbooter.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