# command.Command

- **Module:** command
- **Package:** libtmux
- **Language:** Rust
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/command.rs#L114
- **Page:** https://libtmux.org/en/rs/latest/reference/command-command/

A logical tmux command with classified diagnostic arguments.

Commands retain operating-system strings so dispatch can preserve arbitrary
Unix bytes. Use [`Command::summary`] for a bounded, sanitized diagnostic
representation.

## Example

```rust
use libtmux::Command;

let command = Command::new("display-message").arg("hello");
assert_eq!(command.summary().argument_count(), 1);
```

## Members

- `new` (method): Start a command with one logical tmux subcommand token.
- `arg` (method): Append one public logical argument.
- `sensitive_arg` (method): Append one sensitive logical argument.
- `summary` (method): Build a bounded, sanitized summary of the logical command.
