tmux_interface

Build Status Crates.io Documentation

Description

tmux_interface is a Rust language library for communication with TMUX via CLI.

Usage

  1. Add a dependency in your Cargo.toml

    [dependencies] tmux_interface = "^0.1.0"

  2. Add extern crate and use in your source file

    extern crate tmux_interface;

  3. Use it's functions ``` use tmux_interface::{AttachSession, NewSession, TmuxInterface};

    let mut tmux = TmuxInterface::new(); let newsession = NewSession { detached: Some(true), sessionname: Some("sessionname"), ..Default::default() }; tmux.newsession(Some(&newsession)).unwrap(); let attachsession = AttachSession { targetsession: Some("sessionname"), ..Default::default() }; tmux.attachsession(Some(&attach)).unwrap(); tmux.killsession(None, None, Some("session_name")).unwrap(); ```

Misc

Testing

The library was tested under following conditions.

Tmux: - tmux 3.0a

Rust: - stable (manually, Travis CI) - beta (Travis CI) - nightly (Travis CI)

OS: - Debian 11 Bullseye, x64 (manually) - Ubuntu 16.04 Xenial Xerus, x64 (Travis CI) - MacOS 10.13.6 High Sierra, x64 (Travis CI)

Directory Structure

Contributing

If you are interested in this project and you have:

You are allways welcome, please feel free to use following links to contact me and/or to contribute to the project:

License

tmux_interface is licensed under the MIT license. Please read the license file in this repository for more information.