# TmuxShellCommand.init(from:)

- **Module:** TmuxShellCommand
- **Package:** TmuxWorkspace
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/TmuxWorkspace/Workspace.swift#L123
- **Page:** https://libtmux.org/en/swift/latest/workspace/reference/tmuxshellcommand-init(from-)/

```
TmuxShellCommand.init(from:)(from: any Decoder)
```

Creates a new instance by decoding from the given decoder.

This initializer throws an error if reading from the decoder fails, or
if the data read is corrupted or otherwise invalid.

- Parameter decoder: The decoder to read data from.
