Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachToSession ¶
attachToSession attaches to an existing tmux session
func KillSession ¶
func ListSessions ¶
func ListSessions() error
func ResolveSession ¶
ResolveSession creates a new session if it doesn't exist and then attaches to it
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
Click to show internal directories.
Click to hide internal directories.