entire

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinPath

func BinPath() string

BinPath returns the path to the entire binary from E2E_ENTIRE_BIN. The mise test:e2e tasks set this automatically via `mise run build`.

func Disable

func Disable(t *testing.T, dir string)

Disable runs `entire disable` in the given directory.

func Enable

func Enable(t *testing.T, dir, agent string)

Enable runs `entire enable` for the given agent with telemetry disabled.

func Explain

func Explain(t *testing.T, dir, checkpointID string) string

Explain runs `entire explain --checkpoint <id>` and returns the output.

func ExplainCommit

func ExplainCommit(dir, ref string) (string, error)

ExplainCommit runs `entire explain --commit <ref>`. Returns (output, error) — for testing failure cases.

func ExplainGenerate

func ExplainGenerate(dir, checkpointID string) (string, error)

ExplainGenerate runs `entire explain --checkpoint <id> --generate`. Returns (output, error) — doesn't fail test since callers may test failure cases.

func Resume

func Resume(dir, branch string) (string, error)

Resume runs `entire resume <branch> --force` and returns the output.

func Rewind

func Rewind(t *testing.T, dir, id string) error

Rewind runs `entire rewind --to <id>`. Returns an error instead of failing the test, since callers may test failure cases.

func RewindLogsOnly

func RewindLogsOnly(t *testing.T, dir, id string) error

RewindLogsOnly runs `entire rewind --to <id> --logs-only`.

Types

type ExecError

type ExecError struct {
	Args   []string
	Err    error
	Output string
}

ExecError wraps an entire CLI execution failure with its output.

func (*ExecError) Error

func (e *ExecError) Error() string

func (*ExecError) Unwrap

func (e *ExecError) Unwrap() error

type RewindPoint

type RewindPoint struct {
	ID             string `json:"id"`
	Message        string `json:"message"`
	MetadataDir    string `json:"metadata_dir"`
	Date           string `json:"date"`
	IsLogsOnly     bool   `json:"is_logs_only"`
	CondensationID string `json:"condensation_id"`
	SessionID      string `json:"session_id"`
}

RewindPoint represents a single entry from `entire rewind --list`.

func RewindList

func RewindList(t *testing.T, dir string) []RewindPoint

RewindList runs `entire rewind --list` and parses the JSON output.

Jump to

Keyboard shortcuts

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