# command.Command.summary

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

```
command.Command.summary(self) -> CommandSummary
```

Build a bounded, sanitized summary of the logical command.

## Example

```rust
use libtmux::Command;

let summary = Command::new("display-message").arg("value;").summary();
assert_eq!(summary.to_string(), r#""display-message" "value;""#);
```
