tmux

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachToSession

func AttachToSession(sessionName string) error

attachToSession attaches to an existing tmux session

func KillSession

func KillSession(sessionName string) error

func ListSessions

func ListSessions() error

func ResolveSession

func ResolveSession(dir string, cfg *config.Config)

ResolveSession creates a new session if it doesn't exist and then attaches to it

func TmuxRunning added in v0.2.2

func TmuxRunning() bool

Types

type TmuxCommand

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

tmuxCommand represents a command to be executed with tmux

func NewTmuxCommand

func NewTmuxCommand(args ...string) *TmuxCommand

New creates a new TmuxCommand with the given arguments

func (*TmuxCommand) Execute

func (tc *TmuxCommand) Execute() error

Execute runs the tmux command and returns any error

func (*TmuxCommand) ExecuteVerbose

func (tc *TmuxCommand) ExecuteVerbose() error

ExecuteVerbose runs the command and prints detailed output

func (*TmuxCommand) ExecuteWithIO

func (tc *TmuxCommand) ExecuteWithIO() error

ExecuteWithIO runs the tmux command with standard IO connected

func (*TmuxCommand) Output

func (tc *TmuxCommand) Output() ([]byte, error)

ExecuteOutput runs the command and returns the output

Jump to

Keyboard shortcuts

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