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

Discover the server at an explicit endpoint.

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

Description

Accept a native LibTmux.Server handle and discover its live server generation. An unmaterialized handle produces a connected replacement. An already connected handle is returned unchanged. Use Get-TmuxSnapshot to acquire the hierarchy.

Notes

This command borrows the daemon. Errors preserve the core exception; -ErrorAction Stop terminates the pipeline.

Command details

Command type
cmdlet
Positional binding
Enabled.
Pipeline inputs
LibTmux.Server: Native pipeline type for this command.
Outputs
LibTmux.Server
Parameters
Common parameters 12

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

Returns

LibTmux.Server: Native pipeline type for this command.

Examples

Example 1 Connect to the existing server identified by $SocketPath. View source

Terminal window
LibTmux\New-TmuxServer -SocketPath $SocketPath | LibTmux\Connect-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\Connect-TmuxServer.

Guides

task material

Pages that discuss Connect-TmuxServer.

Esc
Search in

Type to search.

Reference previewOpen reference