Core Library0.xAPI reference

Choose documentation 2

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

cmdlet libtmux-powershell

LibTmux.Get-TmuxQueryPlan

Inspect how a query will run against a known tmux version.

Source and package
Qualified name
LibTmux\Get-TmuxQueryPlan
Declared in
LibTmux
Package
LibTmux
Source
src/LibTmux.PowerShell/GetTmuxQueryPlanCommand.cs

Description

Prepare a native query plan without contacting tmux. The plan exposes pushed and residual predicates, required fields, snapshot depth and fallback reasons. Displaying the plan or reading its properties performs no I/O. Pass it to Invoke-TmuxQuery with an explicit server to execute it.

Auto evaluates supported conditions inside tmux and the remainder locally. Never evaluates the complete predicate locally. Require rejects predicates that need local evaluation. All modes retain the complete acquired graph; source evaluation does not reduce the captured rows.

Notes

Invalid or unsupported planning terminates with Tmux.QueryPlanFailed. Planning does not discover the installed client or daemon version.

Parameters
Common parameters 12

PowerShell supplies these parameters. See common parameter behavior for their effects.

Returns

LibTmux.Query.QueryPlan<T>: One native plan targeting Session, Window or Pane.

Examples

Example 1 Prepare an exact pane-ID query for tmux 3.3a without opening a connection. Use the observed daemon version when preparing a plan for execution. View source

Terminal window
$version = [LibTmux.TmuxVersion]::Parse('3.3a')
LibTmux\New-TmuxQuery -Target Pane -Criteria @{ Id = '%0' } |
LibTmux\Get-TmuxQueryPlan -DaemonVersion $version -Pushdown Require

Recorded calls

source calls
No call edges in the PowerShell model.

The PowerShell 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\Get-TmuxQueryPlan.

Guides

task material

Pages that discuss Get-TmuxQueryPlan.

Esc
Search in

Type to search.

Reference previewOpen reference