tmux_interface 0.4.0

Rust language library for communication with TMUX via CLI
Documentation
// auto-generated file
//

use crate::commands::constants::*;
use crate::TmuxCommand;

pub type Info = ServerInfo;

/// Show server information
///
/// tmux >=0.8 && <=1.9:
/// ```text
/// server-info
/// (alias: info)
/// ```
#[derive(Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug, Default)]
pub struct ServerInfo;

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

    /// build command with arguments in right order
    pub fn build<'a>(self) -> TmuxCommand<'a> {
        let mut cmd = TmuxCommand::new();

        cmd.name(SERVER_INFO);

        cmd
    }
}