Server.shellInvocation
Swift
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift
- Declared in
- Server
- Package
- libtmux-swift
- Source
- Sources/LibTmux/PaneInteraction.swift
- shellInvocation : var shellInvocation: String
-
How a command running *inside* a pane spells a tmux that reaches this server.
A bare
tmuxthere is whichever one is on the pane'sPATH, which is not necessarily this one — and a client whose protocol version differs from the server's is refused withserver exited unexpectedlyrather than anything that names the cause. Composing a command with this instead removes both thePATHlookup and the guess about which server$TMUXrefers to:Quoted for a POSIX shell, so a path containing spaces survives being typed into one.
Examples
try await server.run("make; \(server.shellInvocation) wait-for -S built",in: pane)try await server.wait(for: "built")
0 declared, 0 inherited