LibTmuxWorkspace.apply
-
Methods#
Apply detached through public core operations under one monotonic deadline. Existing names fail by default.
reuse=SessionRef(...)explicitly borrows that exact session after checking its generation and name. Only newly created panes receive commands. The plan's 1-based positions resolve to returned typed refs.apply(server, plan; timeout=30.0, cancel=nothing, reuse=nothing,rollback=:none, readiness=:posix_shell, script_env=ENV, on_event=nothing)Default readiness sends a marker through a POSIX shell and awaits its atomic publication through an owned file monitor. No polling or delays occur. Cancellation removes the directory, so late producers cannot leave waiters. Custom launchers with input require explicit
readiness=:none. A successful command step means input was delivered, not that its shell job finished or succeeded.rollback=:createdattempts uncancelled cleanup within 900 ms: remove the new session, or only created window links in a borrowed session. It does not restore borrowed options/environment, global settings or shell effects. Failed/uncertain creations are never guessed at or deleted. InspectWorkspaceApplyError.result. Events run synchronously and must return promptly; a callback error stops apply.- Parameters
-
-
server( LibTmux ) #.Server -
reuse=nothing( Union{Nothing, LibTmux } ) #.Session Ref -
script_env=ENV( AbstractDict ) #
-
In other ports Build a session from a workspace description
- PowerShell
LibTmux.Workspace\Invoke-TmuxWorkspaceApplies the exact reviewed
-Planafter PowerShell confirmation.-WhatIfpreviews without applying it; application is detached. - Python
- Ruby
- Lua No source-verified Lua equivalent is recorded for this operation.
- TypeScript
- Rust
- Go
- Java
- C#
- C++
- Swift
- Kotlin No source-verified Kotlin equivalent is recorded for this operation.
- Scala No source-verified Scala equivalent is recorded for this operation.
- F# No source-verified F# equivalent is recorded for this operation.