Documentation
¶
Index ¶
- type ExecRunner
- func (r *ExecRunner) AttachSession(ctx context.Context, sessionName string) error
- func (r *ExecRunner) CapturePane(ctx context.Context, sessionName string) (string, error)
- func (r *ExecRunner) HasSession(ctx context.Context, sessionName string) bool
- func (r *ExecRunner) KillSession(ctx context.Context, sessionName string) error
- func (r *ExecRunner) ListSessionNames(ctx context.Context) ([]string, error)
- func (r *ExecRunner) NewDetachedSession(ctx context.Context, sessionName string, command string) error
- func (r *ExecRunner) NewSession(ctx context.Context, sessionName string, env []string, command string, ...) error
- type Runner
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 (*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 (*ExecRunner) NewSession ¶
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.
Click to show internal directories.
Click to hide internal directories.