1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#[cfg(feature = "tmux_1_3")]
use crate::ChooseBuffer;
#[cfg(feature = "tmux_0_9")]
use crate::ClearHistory;
use crate::TmuxCommand;
#[cfg(feature = "tmux_0_8")]
use crate::{
DeleteBuffer, ListBuffers, LoadBuffer, PasteBuffer, SaveBuffer, SetBuffer, ShowBuffer,
};
#[cfg(feature = "tmux_1_3")]
pub mod choose_buffer;
#[cfg(feature = "tmux_0_9")]
pub mod clear_history;
#[cfg(feature = "tmux_0_8")]
pub mod delete_buffer;
#[cfg(feature = "tmux_0_8")]
pub mod list_buffers;
#[cfg(feature = "tmux_0_8")]
pub mod load_buffer;
#[cfg(feature = "tmux_0_8")]
pub mod paste_buffer;
#[cfg(feature = "tmux_0_8")]
pub mod save_buffer;
#[cfg(feature = "tmux_0_8")]
pub mod set_buffer;
#[cfg(feature = "tmux_0_8")]
pub mod show_buffer;
#[cfg(feature = "tmux_1_3")]
pub mod choose_buffer_tests;
#[cfg(feature = "tmux_0_9")]
pub mod clear_history_tests;
#[cfg(feature = "tmux_0_8")]
pub mod delete_buffer_tests;
#[cfg(feature = "tmux_0_8")]
pub mod list_buffers_tests;
#[cfg(feature = "tmux_0_8")]
pub mod load_buffer_tests;
#[cfg(feature = "tmux_0_8")]
pub mod paste_buffer_tests;
#[cfg(feature = "tmux_0_8")]
pub mod save_buffer_tests;
#[cfg(feature = "tmux_0_8")]
pub mod set_buffer_tests;
#[cfg(feature = "tmux_0_8")]
pub mod show_buffer_tests;
impl<'a> TmuxCommand<'a> {
#[cfg(feature = "tmux_1_3")]
pub fn choose_buffer(&self) -> ChooseBuffer<'a> {
ChooseBuffer::from(self)
}
#[cfg(feature = "tmux_0_9")]
pub fn clear_history(&self) -> ClearHistory<'a> {
ClearHistory::from(self)
}
#[cfg(feature = "tmux_0_8")]
pub fn delete_buffer(&self) -> DeleteBuffer<'a> {
DeleteBuffer::from(self)
}
#[cfg(feature = "tmux_0_8")]
pub fn list_buffers(&self) -> ListBuffers<'a> {
ListBuffers::from(self)
}
#[cfg(feature = "tmux_0_8")]
pub fn load_buffer(&self) -> LoadBuffer<'a> {
LoadBuffer::from(self)
}
#[cfg(feature = "tmux_0_8")]
pub fn paste_buffer(&self) -> PasteBuffer<'a> {
PasteBuffer::from(self)
}
#[cfg(feature = "tmux_0_8")]
pub fn save_buffer(&self) -> SaveBuffer<'a> {
SaveBuffer::from(self)
}
#[cfg(feature = "tmux_0_8")]
pub fn set_buffer(&self) -> SetBuffer<'a> {
SetBuffer::from(self)
}
#[cfg(feature = "tmux_0_8")]
pub fn show_buffer(&self) -> ShowBuffer<'a> {
ShowBuffer::from(self)
}
}