Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

method libtmux-dotnet

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.BuildGuardedCommandLine
Namespace
LibTmux
Declared in
Server
Package
LibTmux
Source
src/LibTmux/Server.Command.cs

Description

A command this library dispatches itself is already guarded by RequiredGeneration through Chain(). 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 expecting expected, 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 EndpointArguments before passing this to a process started at TmuxBinaryPath.

Recorded calls

source calls
No call edges in the C# model.

The 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.

Esc
Search in

Type to search.

Reference previewOpen reference