# workspace.Command.UnmarshalYAML

- **Module:** workspace.Command
- **Package:** github.com/libtmux/libtmux-go/workspace
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/workspace/command.go#L29
- **Page:** https://libtmux.org/en/go/latest/workspace/reference/workspace-command-unmarshalyaml/

```
workspace.Command.UnmarshalYAML(node: *yaml.Node) -> error
```

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