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.ConvertTo-TmuxQueryJson

Serialize a native query document.

Source and package
Qualified name
LibTmux\ConvertTo-TmuxQueryJson
Declared in
LibTmux
Package
LibTmux
Source
src/LibTmux.PowerShell/ConvertToTmuxQueryJsonCommand.cs

Description

Serialize a native query document through LibTmux.Query.Json. The returned string uses the shared schema 2 contract. Serialization performs no tmux I/O. Restore the document with New-TmuxQuery -Json.

Notes

Tmux.QueryJsonFailed terminates invalid serialization.

Command details

Command type
cmdlet
Positional binding
Enabled.
Pipeline inputs
LibTmux.Query.QueryDocument: Native query documents.
Outputs
System.String
Parameters
Common parameters 12

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

Returns

System.String: One JSON string per document.

Examples

Example 1 Serialize a pane-width filter for storage or another native consumer. View source

Terminal window
LibTmux\New-TmuxQuery -Target Pane -Criteria @{ Width = @{ Ge = 80 } } |
LibTmux\ConvertTo-TmuxQueryJson

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\ConvertTo-TmuxQueryJson.

Guides

task material

Pages that discuss ConvertTo-TmuxQueryJson.

Esc
Search in

Type to search.

Reference previewOpen reference