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
#[cfg(feature = "tmux_0_8")]
use crate::CommandPrompt;
#[cfg(feature = "tmux_0_9")]
use crate::ConfirmBefore;
#[cfg(feature = "tmux_3_0")]
use crate::DisplayMenu;
use crate::TmuxCommand;
#[cfg(feature = "tmux_1_0")]
use crate::DisplayMessage;
#[cfg(feature = "tmux_0_8")]
pub mod command_prompt;
#[cfg(feature = "tmux_0_9")]
pub mod confirm_before;
#[cfg(feature = "tmux_3_0")]
pub mod display_menu;
#[cfg(feature = "tmux_1_0")]
pub mod display_message;
#[cfg(feature = "tmux_0_8")]
pub mod command_prompt_tests;
#[cfg(feature = "tmux_0_9")]
pub mod confirm_before_tests;
#[cfg(feature = "tmux_3_0")]
pub mod display_menu_tests;
#[cfg(feature = "tmux_1_0")]
pub mod display_message_tests;
impl<'a> TmuxCommand<'a> {
#[cfg(feature = "tmux_0_8")]
pub fn command_prompt(&self) -> CommandPrompt<'a> {
CommandPrompt::from(self)
}
#[cfg(feature = "tmux_0_9")]
pub fn confirm_before(&self) -> ConfirmBefore<'a> {
ConfirmBefore::from(self)
}
#[cfg(feature = "tmux_3_0")]
pub fn display_menu(&self) -> DisplayMenu<'a> {
DisplayMenu::from(self)
}
#[cfg(feature = "tmux_1_0")]
pub fn display_message(&self) -> DisplayMessage<'a> {
DisplayMessage::from(self)
}
}