# libtmux._internal.log_context._redact_single_command

- **Module:** libtmux._internal.log_context
- **Package:** libtmux
- **Language:** Python
- **Kind:** function
- **Source:** https://github.com/tmux-python/libtmux/blob/efdbb5637666b166358772ecc737b3807beab21e/src/libtmux/_internal/log_context.py#L637
- **Page:** https://libtmux.org/en/py/latest/reference/libtmux-_internal-log_context-_redact_single_command/

```
libtmux._internal.log_context._redact_single_command(
    tokens: Sequence[str],
    depth: int = 0,
    allow_attached_semicolon: bool = True,
) -> list[str]
```

Mask environment values within a single parsed tmux command.

## Parameters

- `tokens` (`Sequence[str]`)
- `depth` (`int`)
  Default: `0`.
- `allow_attached_semicolon` (`bool`)
  Default: `True`.
