CommandResult.command
Return the sanitized logical command summary.
Source and package
- Qualified name
-
libtmux::command:: Command Result:: command - Module
- command
- Declared in
CommandResult- Package
- libtmux
- Source
- crates/libtmux/src/command.rs
- #[must_use] pub const fn command(&self) -> &Command
Summary -
Examples#
let server = libtmux::Server::builder().socket_path("/tmp/libtmux-rs-test/result-command.sock").build()?;let result = server.cmd(libtmux::Command::new("list-sessions")).await?;assert_eq!(result.command().to_string(), r#""list-sessions""#);server.shutdown().await?;