Server.BuildGuardedCommandLine
Builds the argument vector for a raw tmux invocation that only takes effect while the named server generation is still current.
Source and package
- Qualified name
-
LibTmux .Server. Build Guarded Command Line - Namespace
- LibTmux
- Declared in
Server- Package
- LibTmux
- Source
- src/LibTmux/Server.Command.cs
- static IRead
Only <string> BuildGuardedCommandLine( ServerList Generation expected, string mismatchCommand , params IReadOnly <string>[] commands )List -
Description
A command this library dispatches itself is already guarded by
RequiredGenerationthroughChain(). This is for the one case that cannot go through that dispatch -- an interactive attach, which must run as its own foreground process to inherit the caller's terminal, so the guard has to travel inside the argument vector instead.- Parameters
-
-
expected(ServerGeneration ) – The generation the command requires. -
mismatchCommand(string) – A tmux command run instead when the generation has changed. The caller already committed to spawning a process expectingexpected, so this is typically one that fails loudly rather than one that repairs anything. -
commands– One or more tmux commands to run when the generation still matches, each its own argument vector.
-
- Returns
-
The encoded arguments. Prepend
EndpointArgumentsbefore passing this to a process started atTmuxBinaryPath.
Recorded calls
source callsThe C# reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Server.BuildGuardedCommandLine.