tee

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(filename string, cfg Config) (string, error)

func Save

func Save(command string, output string, exitCode int, cfg Config) (string, error)

func WriteAndHint

func WriteAndHint(output string, command string, exitCode int) string

WriteAndHint saves output and returns a hint string for the LLM.

Types

type Config

type Config struct {
	Enabled  bool
	Mode     Mode
	MaxFiles int
	Dir      string
}

func DefaultConfig

func DefaultConfig() Config

type Mode

type Mode string
const (
	ModeFailures Mode = "failures"
	ModeAlways   Mode = "always"
	ModeNever    Mode = "never"
)

type TeeEntry

type TeeEntry struct {
	Timestamp time.Time
	Command   string
	Filename  string
}

func List

func List(cfg Config) ([]TeeEntry, error)

Jump to

Keyboard shortcuts

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