# Libtmux_json.Workspace.encode_plan

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

- **Module:** Libtmux_json
- **Package:** libtmux-json
- **Language:** OCaml
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/json/libtmux_json.mli#L51
- **Public owner:** Libtmux_json
- **Page:** https://libtmux.org/en/ocaml/latest/workspace/reference/libtmux_json-workspace-encode_plan/

```
val encode_plan :
  Libtmux_workspace.Plan.t -> (Yojson.Safe.t, Decode_error.t) result
```

Describe `libtmux.workspace-plan/1` without I/O. The advisory preview contains command argv, cwd and environment names, excluding environment values, option values and startup text. It is not an execution script.

## Parameters

- `arg1` (`Libtmux_workspace.Plan.t`)
