Core LibraryalphaAPI Reference

Choose documentation 3

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.

method libtmux-cxx latest

Server.run_chain

Run a chain.

Source and package
Qualified name
libtmux::Server::run_chain
Namespace
libtmux
Declared in
Server
Package
libtmux-cxx
Source
include/libtmux/server.hpp
Other languages
Perl Erlang PowerShell Julia Elixir Haskell Common Lisp Python Ruby Lua TypeScript Rust Go JavaC# Swift Kotlin Scala OCaml F# Clojure
[[C++ nodiscard attributeAsks the compiler to warn when a result is discarded. An explicit cast to void acknowledges that the result is intentionally ignored.Language documentation]] expected<std::string, CommandFailure> run_chain(const Chain& chain) const;

Description#

A chain that failed validation never reaches tmux, and says which step was wrong rather than surfacing a tmux message about it.

Parameters

In other ports#

Run several commands in one tmux invocation

Equivalents of Run several commands in one tmux invocation in other languages
Language Equivalent
Python no equivalent on Server
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript no equivalent on Server
Rust server.Server.chain
Go no equivalent on Server
Java io.github.libtmux.Server.chain
C# LibTmux.Server.Chain
Swift no equivalent on Server
OCaml No direct public OCaml equivalent is recorded for this operation.
Perl batch executes ordered independent requests, not a tmux command list in one invocation; command chaining is deferred.

No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.

Esc

Type to search.

Reference previewOpen reference