libtmux Reference MCP Search
On this page

version.TmuxVersion.require

View as Markdown

Module
version
Declared in
TmuxVersion
Package
libtmux
Source
crates/libtmux/src/version.rs
require ( self , capability : &static str , needs : ReleaseVersion ) Result<(), Error>
method [source]
method [source]
require

Refuse a capability this release is too old for.

tmux usually accepts an unknown flag and ignores it, so without this "your tmux is too old" arrives as "the command did nothing". A development build carries no numbered release to compare and is taken at its word rather than refused.

Errors

Returns Error::UnsupportedCapability when this release is below needs.

0 declared, 0 inherited

Esc

Type to search.