Batch
Several tmux commands in one invocation, each with an outcome of its own.
Source and package
- Qualified name
-
io.github .libtmux .batch. Batch - Package
- io.github.libtmux.batch
- Distribution
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/batch/Batch.java
-
Description#
tmux runs a group until a command fails and then discards the rest, so the number of replies cannot say which command failed: an error in the first position and an error in the last both come back as one nonzero exit. Counting replies is wrong in every position but one.
A marker is therefore interleaved after each operation. Markers are discarded along with everything else after a failure, so the last marker seen is exactly the last operation tmux ran, and the operations either side of that boundary are known rather than guessed.
Members5#
- add method Adds one tmux command, its arguments already separate elements.
- Batch method Collects operations to run together.
- length method How many bytes the collected operations come to as the one command tmux parses.
- run method Runs every collected operation in one tmux invocation.
- size method How many operations have been collected.
Guides#
Pages that discuss Batch.