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

command.Command

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

View as Markdown

Module
command
Package
libtmux
Source
crates/libtmux/src/command.rs
struct command.Command
structoverload [source]
structoverload [source]
struct 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.

Examples

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

4 declared, 0 inherited

Members

  • arg method Append one public logical argument.
  • new method Start a command with one logical tmux subcommand token.
  • sensitive_arg method Append one sensitive logical argument.
  • summary method Build a bounded, sanitized summary of the logical command.
Esc

Type to search.