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-TmuxServer

Inspect an existing tmux daemon's identity and version.

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

Description

Read the selected endpoint and return a native Server with its daemon generation and DaemonVersion. An absent daemon produces no output. Inspection never starts a daemon and leaves the input handle unchanged.

Sessions, windows and panes remain uncaptured. Pipe the inspected server to Get-TmuxSnapshot to acquire those relationships and retain the inspected version for Get-TmuxQueryPlan.

Notes

Tmux.ServerInspectionFailed retains the native exception and target. Inspection of an absent endpoint is successful and emits no object; other failures use the error stream. Use ErrorAction Stop to stop the pipeline on those failures.

Command details

Command type
cmdlet
Positional binding
Enabled.
Pipeline inputs
LibTmux.Server: Native endpoint handle.
Outputs
LibTmux.Server
Parameters
Common parameters 12

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

Returns

LibTmux.Server: Inspected daemon, when present.

Examples

Example 1 Inspect the existing daemon identified by $SocketPath. View source

Terminal window
LibTmux\New-TmuxServer -SocketPath $SocketPath | LibTmux\Get-TmuxServer

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

tmux command

task material

The tmux commands behind Get-TmuxServer.

tmux C API

task material

The C declarations in tmux that implement these commands.

Esc
Search in

Type to search.

Reference previewOpen reference