Server.hasSession(_:)
- Declared in
- Server
- Package
- libtmux-swift
- Source
- Sources/LibTmux/Server.swift
- Other languages
- Python Ruby Lua TypeScriptRustGoJava.NET C++
-
Whether a session by this name or id exists.
Asks the question tmux has a command for rather than listing every session and searching one:
has-sessionanswers with its exit status, so this decodes nothing and stays correct for a name a listing would have to be parsed to find.- Raises
Discussed in Filtering and querying, in practice
In other ports Whether a session with this name exists
- Python
libtmux.Server.has_session - Ruby No source-verified Ruby equivalent is recorded for this operation.
- Lua No source-verified Lua equivalent is recorded for this operation.
- TypeScript
server.Server.hasSession - Rust
server.Server.has_session - Go
tmux.Server.HasSession - Java
io.github.libtmux.Server.Server.hasSession - .NET
LibTmux.Server.HasSessionAsync - C++ no equivalent on
Server
0 declared, 0 inherited