Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

LibTmux.TmuxChain

.NET
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
LibTmux
Package
LibTmux
Source
src/LibTmux/Chaining/TmuxChain.cs
class LibTmux.TmuxChain
class [source]
class [source]
class LibTmux.TmuxChain

Commands tmux runs together, in one process.

A one-shot call starts a tmux client, runs one command, and lets it exit, which is the right shape for one command and the wrong shape for fifty: the process start dominates. A chain hands tmux the whole sequence at once, so the cost is paid once no matter how many commands are in it.

Building a chain reaches nothing; only ExecuteAsync does. Each step returns a new chain, so a partly built one can be shared without another caller's additions appearing in it.

3 declared, 0 inherited

Members

  • Commands property Gets the commands this chain will run, in order.
  • ExecuteAsync method Runs every command in one tmux invocation.
  • Then method Adds one command and returns the longer chain.
Esc

Type to search.