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

Stop a native tmux server without emitting an object.

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

Description

Stop the tmux server that the supplied native LibTmux.Server handle names, with the tmux kill-server command. Every session, window and pane on that server is destroyed and its daemon exits. Use it to end a private server you started, such as one named by New-TmuxServer on a socket of its own.

A server that is already gone is the requested outcome, so an absent daemon succeeds and nothing is stopped. This high-impact operation requests confirmation by default. WhatIf performs no tmux I/O. Cancellation does not restore a stopped server.

Notes

Failures use Tmux.ServerStopFailed and retain the original core exception, its dispatch information and the failed server. The stop is never retried. Session, window and pane handles read from the stopped server no longer name anything.

Command details

Command type
cmdlet
Confirmation
Supports -WhatIf and -Confirm; confirm impact: High.
Positional binding
Enabled.
Pipeline inputs
LibTmux.Server: A native LibTmux.Server naming the endpoint to stop.
Outputs
System.Void
Parameters
Common parameters 12

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

Returns

None: No success objects are emitted. An empty input pipeline performs no work.

Examples

Example 1 Stop the previously created $server, a private endpoint you own. This example explicitly suppresses confirmation; omitting Confirm uses the normal high-impact confirmation behavior. View source

Terminal window
$server | LibTmux\Stop-TmuxServer -Confirm:$false

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

Guides

task material

Pages that discuss Stop-TmuxServer.

Esc
Search in

Type to search.

Reference previewOpen reference