shell

package
v0.4.19 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package shell sets up a telnet endpoint

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatBuilder

type ChatBuilder interface {
	Create(context.Context) (ChatPrompter, error)
}

func CreateExampleChat

func CreateExampleChat(
	ctx context.Context,
	model string,
	baseURL string,
) (ChatBuilder, error)

type ChatPrompter

type ChatPrompter interface {
	Prompt(string) (string, error)
}

type FuzzyMatcher

type FuzzyMatcher struct {
	// contains filtered or unexported fields
}

func CreateFuzzy

func CreateFuzzy(listTarget []string) *FuzzyMatcher

func (*FuzzyMatcher) Match

func (fm *FuzzyMatcher) Match(arg string) string

type Shell

type Shell struct {
	// contains filtered or unexported fields
}

func Create

func Create(parentCtx context.Context, addr net.Addr, entry *slog.Logger, chatBuilder ChatBuilder) (Shell, error)

func (Shell) Close

func (s Shell) Close() error

func (Shell) CloseSignal

func (s Shell) CloseSignal() <-chan error

Source Files

  • chat.go
  • fuzzymatch.go
  • internal.go
  • session.go
  • shell.go
  • tools.go

Jump to

Keyboard shortcuts

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