teecommand

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SavingsTracker

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

func NewSavingsTracker

func NewSavingsTracker() *SavingsTracker

func (*SavingsTracker) Record

func (st *SavingsTracker) Record(savedTokens int)

func (*SavingsTracker) RenderASCIIGraph

func (st *SavingsTracker) RenderASCIIGraph(width int) string

func (*SavingsTracker) Total

func (st *SavingsTracker) Total() int64

type TeeExecutor

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

func NewTeeExecutor

func NewTeeExecutor() *TeeExecutor

func (*TeeExecutor) Execute

func (t *TeeExecutor) Execute(args []string, compressFunc func(string) string) *TeeResult

func (*TeeExecutor) History

func (t *TeeExecutor) History() []TeeResult

func (*TeeExecutor) Recover

func (t *TeeExecutor) Recover(index int) string

type TeeMode

type TeeMode string
const (
	TeeCapture     TeeMode = "capture"
	TeePassthrough TeeMode = "passthrough"
)

type TeeResult

type TeeResult struct {
	ExitCode    int    `json:"exit_code"`
	Original    string `json:"original"`
	Compressed  string `json:"compressed"`
	SavedTokens int    `json:"saved_tokens"`
	Error       error  `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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