tmux_interface 0.3.2

Rust language library for communication with TMUX via CLI
Documentation
use crate::commands::constants::*;
use crate::TmuxCommand;

/// Kill the tmux server and clients and destroy all sessions
///
/// # Manual
///
/// tmux ^0.8:
/// ```text
/// kill-server
/// ```
#[derive(Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug, Default)]
pub struct KillServer;

impl KillServer {
    pub fn new() -> Self {
        Default::default()
    }

    pub fn build<'a>(self) -> TmuxCommand<'a> {
        let mut cmd = TmuxCommand::new();

        cmd.name(KILL_SERVER);

        cmd
    }
}