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

Workspace.decode(yaml:)

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

API reference · Markdown

Workspace.decode(yaml:) ( yaml : String ) → Workspace
methodstatic [source]
methodstatic [source]
Workspace.decode(yaml:)

Reads a workspace from YAML, which is how tmuxp files are usually written.

Available when the YAMLWorkspaces trait is enabled, which is what pulls in the YAML parser:

Examples

.package(
url: "https://github.com/libtmux/libtmux-swift.git",
exact: "0.1.0-alpha.5",
traits: ["YAMLWorkspaces"]
)
Raises

Discussed in Build a workspace from a file · Use the Swift workspace builder , Swift workspace builder API

Esc

Type to search.