# operation_options.CommandPolicy

**Workspace Manager concept example** A working example of the core library. It can change without notice.

- **Module:** operation_options
- **Package:** @libtmux/workspace
- **Language:** TypeScript
- **Kind:** typealias
- **Source:** https://github.com/libtmux/libtmux-ts/blob/46cccfef2a546de55ce8b308249b8c76339089a0/packages/workspace/src/operation_options.ts#L10
- **Page:** https://libtmux.org/en/ts/latest/workspace/reference/operation_options-commandpolicy/

```ts
type CommandPolicy = "always" | "create-only"
```

When a pane's `shell_command` entries are sent to it.

`create-only`, the default, sends them only to panes this apply created.
`always` sends them to every pane on every apply.
