use crate::TmuxCommand;
#[cfg(feature = "tmux_0_8")]
pub mod clock_mode;
#[cfg(feature = "tmux_0_8")]
pub mod clock_mode_macro;
#[cfg(feature = "tmux_0_8")]
pub mod if_shell;
#[cfg(feature = "tmux_0_8")]
pub mod lock_server;
#[cfg(feature = "tmux_0_8")]
pub mod lock_server_macro;
#[cfg(feature = "tmux_1_1")]
pub mod run_shell;
#[cfg(feature = "tmux_1_1")]
pub mod run_shell_macro;
#[cfg(feature = "tmux_1_8")]
pub mod wait_for;
#[cfg(feature = "tmux_1_8")]
pub mod wait_for_macro;
#[cfg(feature = "tmux_0_8")]
pub use clock_mode::ClockMode;
#[cfg(feature = "tmux_0_8")]
pub use if_shell::{If, IfShell};
#[cfg(feature = "tmux_0_8")]
pub use lock_server::{Lock, LockServer};
#[cfg(feature = "tmux_1_1")]
pub use run_shell::{Run, RunShell};
#[cfg(feature = "tmux_1_8")]
pub use wait_for::{Wait, WaitFor};
#[cfg(test)]
#[path = "."]
mod miscellaneous_tests {
#[cfg(feature = "tmux_0_8")]
pub mod clock_mode_tests;
#[cfg(feature = "tmux_0_8")]
pub mod if_shell_tests;
#[cfg(feature = "tmux_0_8")]
pub mod lock_server_tests;
#[cfg(feature = "tmux_1_1")]
pub mod run_shell_tests;
#[cfg(feature = "tmux_1_8")]
pub mod wait_for_tests;
}
impl<'a> TmuxCommand<'a> {
#[cfg(feature = "tmux_0_8")]
pub fn clock_mode() -> ClockMode<'a> {
ClockMode::new()
}
#[cfg(feature = "tmux_0_8")]
pub fn if_shell() -> IfShell<'a> {
IfShell::new()
}
#[cfg(feature = "tmux_0_8")]
pub fn lock_server() -> LockServer {
LockServer::new()
}
#[cfg(feature = "tmux_1_1")]
pub fn run_shell() -> RunShell<'a> {
RunShell::new()
}
#[cfg(feature = "tmux_1_8")]
pub fn wait_for() -> WaitFor<'a> {
WaitFor::new()
}
}
#[cfg(feature = "tmux_0_8")]
impl<'a> From<ClockMode<'a>> for TmuxCommand<'a> {
fn from(item: ClockMode<'a>) -> Self {
item.build()
}
}
#[cfg(feature = "tmux_0_8")]
impl<'a> From<IfShell<'a>> for TmuxCommand<'a> {
fn from(item: IfShell<'a>) -> Self {
item.build()
}
}
#[cfg(feature = "tmux_0_8")]
impl<'a> From<LockServer> for TmuxCommand<'a> {
fn from(item: LockServer) -> Self {
item.build()
}
}
#[cfg(feature = "tmux_1_1")]
impl<'a> From<RunShell<'a>> for TmuxCommand<'a> {
fn from(item: RunShell<'a>) -> Self {
item.build()
}
}
#[cfg(feature = "tmux_1_8")]
impl<'a> From<WaitFor<'a>> for TmuxCommand<'a> {
fn from(item: WaitFor<'a>) -> Self {
item.build()
}
}