tmux

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecRunner

type ExecRunner struct{}

ExecRunner implements Runner by executing the tmux binary.

func (*ExecRunner) AttachSession

func (r *ExecRunner) AttachSession(ctx context.Context, sessionName string) error

func (*ExecRunner) CapturePane added in v0.0.8

func (r *ExecRunner) CapturePane(ctx context.Context, sessionName string) (string, error)

func (*ExecRunner) HasSession

func (r *ExecRunner) HasSession(ctx context.Context, sessionName string) bool

func (*ExecRunner) KillSession

func (r *ExecRunner) KillSession(ctx context.Context, sessionName string) error

func (*ExecRunner) ListSessionNames

func (r *ExecRunner) ListSessionNames(ctx context.Context) ([]string, error)

func (*ExecRunner) NewDetachedSession

func (r *ExecRunner) NewDetachedSession(ctx context.Context, sessionName string, command string) error

func (*ExecRunner) NewSession

func (r *ExecRunner) NewSession(ctx context.Context, sessionName string, env []string, command string, sourceFile string) error

type Runner

type Runner interface {
	HasSession(ctx context.Context, sessionName string) bool
	AttachSession(ctx context.Context, sessionName string) error
	NewSession(ctx context.Context, sessionName string, env []string, command string, sourceFile string) error
	ListSessionNames(ctx context.Context) ([]string, error)
	KillSession(ctx context.Context, sessionName string) error
	NewDetachedSession(ctx context.Context, sessionName string, command string) error
	CapturePane(ctx context.Context, sessionName string) (string, error)
}

Runner is the interface for tmux operations.

Jump to

Keyboard shortcuts

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