LibTmux.Workspace.WorkspaceBuilder
.NET
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET
- C++ Unavailable
- Swift Unavailable
-
Builds a tmux session from a tmuxp workspace file.
Discussed in Use the .NET workspace builder , .NET workspace builder API
Members
- WorkspaceBuilder ( server : Server , readinessTimeout : TimeSpan? , paneReadiness : PaneReadiness )
-
Initializes a builder against one server.
- Parameters
-
-
server ( Server ) – The server the session is built on.
-
readinessTimeout ( TimeSpan? ) – How long a pane may take to reach a prompt-like state, or null for ten seconds.
-
paneReadiness ( PaneReadiness ) – Which default-shell panes wait for readiness.
-
- BuildAsync ( workspace : WorkspaceFile , cancellationToken : CancellationToken ) Task<WorkspaceResult>
-
Builds a session from a workspace.
Readiness is inferred from the pane's current command and cursor position. Startup output can resemble a prompt, and a prompt left at the origin can time out; the builder never writes a readiness probe to the pane.
- Parameters
-
-
workspace ( WorkspaceFile ) – The workspace to build.
-
cancellationToken ( CancellationToken ) – Cancels the tmux commands.
-
- Returns
-
What was built, and what could not be.
- Raises
-
-
WorkspaceFormatException – The workspace describes no session.
-
WorkspaceBuildException – tmux failed after application began. The exception reports any materialized state.
-
Discussed in Build a workspace from a file · .NET workspace internals , .NET workspace builder API
In other ports Build a session from a workspace description
- Python
tmuxp.workspace.builder.ClassicWorkspaceBuilder.build - Ruby
LibTmux::Workspace::Plan#apply - Lua No source-verified Lua equivalent is recorded for this operation.
- TypeScript
builder.applyWorkspace - Rust
src.WorkspaceBuilder.build - Go
workspace.Build - Java
io.github.libtmux.workspace.WorkspaceBuilder.WorkspaceBuilder.build - C++
libtmux::workspace::build - Swift
WorkspaceBuilder.build(_:on:)