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

command.Command.new

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

View as Markdown

Module
command
Declared in
Command
Package
libtmux
Source
crates/libtmux/src/command.rs
new ( subcommand : impl Into<OsString> ) → Self
method [source]
method [source]
new

Start a command with one logical tmux subcommand token.

Examples

use libtmux::Command;
let command = Command::new("list-sessions");
assert_eq!(command.summary().to_string(), r#""list-sessions""#);

0 declared, 0 inherited

Esc

Type to search.