TmuxTransport.execute
Runs the request to completion.
Source and package
- Qualified name
-
io.github .libtmux .transport .Tmux Transport. execute - Package
- io.github.libtmux.transport
- Declared in
TmuxTransport- Distribution
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/transport/TmuxTransport.java
- Command
Result execute(CommandRequest request); -
Description#
An implementation writes
CommandRequest#input()to tmux's standard input and closes it. A command that reads standard input and is given none reads end of file, which tmux reports as success over an empty result rather than as a failure.- Parameters
-
-
request(CommandRequest ) # – what to run, what it reads, and how long to wait
-
- Returns
-
the exit status and both channels; a nonzero exit is a result, not a failure
- Raises
-
-
Dispatch
Exception – if the command could not be run to completion, carrying how certain it is that tmux applied it -
Illegal
State – if this transport is closedException
-