ScriptedCommand
ScriptedCommand is one answer a scripted tmux gives. The first matching entry wins, and an invocation nothing matches exits 1 saying so.
Source and package
- Qualified name
-
tmuxtest.Scripted Command - Package
- tmuxtest
- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/tmuxtest/scripted.go
Fields4#
| Name | Type | Description |
|---|---|---|
| Contains | []string | Contains selects the invocations this entry answers: one matches when its arguments contain every string listed, so "list-sessions" answers that subcommand whatever flags surround it. Empty matches every invocation. |
| ExitCode | int | ExitCode is the status the invocation exits with. |
| Stderr | string | Stderr is written to standard error exactly, newlines included. This package reads a completed failure from stderr rather than from an exit code, so an entry standing in for one sets this. |
| Stdout | string | Stdout is written to standard output exactly, newlines included. |