Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

workspace.Command

Go
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

API reference · Markdown

struct workspace.Command
struct [source]
struct [source]
struct workspace.Command

Command is one command to run in a pane. YAML accepts either a bare string or a mapping, so "echo hi" and {cmd: echo hi, sleep_before: 2} are both commands.

Discussed in Go workspace builder API

Members

Command

Command : string
attribute [source]
attribute [source]
Command

Command is the text typed into the pane.

SleepBefore

SleepBefore : time.Duration
attribute [source]
attribute [source]
SleepBefore

SleepBefore delays this command. YAML expresses the duration in seconds, so 0.5 is half a second.

SleepAfter

SleepAfter : time.Duration
attribute [source]
attribute [source]
SleepAfter

SleepAfter delays the commands that follow this one, in the same units.

Enter

Enter : *Bool
attribute [source]
attribute [source]
Enter

Enter reports whether to press Enter after the command. Nil presses it, matching tmuxp, where omitting enter runs the command.

UnmarshalYAML

UnmarshalYAML ( node : *yaml.Node ) → error
method [source]
method [source]
UnmarshalYAML

UnmarshalYAML decodes a command written as a bare string or as a mapping.

Esc

Type to search.