Server.run(_:)
Runs a list of commands in one tmux invocation.
Source and package
- Qualified name
-
Server.run(_:) - Declared in
Server- Package
- libtmux-swift
- Source
- Sources/LibTmux/CommandList.swift
- run(list: Tmux
Command ) -> TmuxList Reply run(command: TmuxCommand ) -> TmuxReply -
Description#
The reply covers the whole list. tmux stops at the first command that fails, so a nonzero status means some prefix of the list ran — read the standard error to learn which command tmux objected to.
Running an empty list is a no-op that reports success without invoking tmux at all.
- Parameters
-
-
list(TmuxCommand ) # forList run(list) -
command(TmuxCommand ) # forrun(command)
-
- Raises