shell

package
v0.0.0-...-d44fee7 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(shellType string, logger *log.Logger, llmClient llm.Client, cfg *config.Config, handleError func(*log.Logger, llm.Client, *config.Config, string)) *Handler

func (*Handler) FormatCommand

func (h *Handler) FormatCommand(command string) string

func (*Handler) GetHistory

func (h *Handler) GetHistory(lines int) (string, error)

func (*Handler) OutputCommand

func (h *Handler) OutputCommand(commands string) error

Jump to

Keyboard shortcuts

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