Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachToSession ¶
func AttachToSession(sessionName string)
attachToSession attaches to an existing tmux session
func KillSession ¶
func KillSession(sessionName string)
func ResolveSession ¶
func ResolveSession(dir string)
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
Click to show internal directories.
Click to hide internal directories.