Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

command.CommandResult.command

Rust
  • Python Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
command
Declared in
CommandResult
Package
libtmux
Source
crates/libtmux/src/command.rs
command ( self ) → &CommandSummary
method [source]
method [source]
command

Return the sanitized logical 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?;

0 declared, 0 inherited

Esc

Type to search.