tmux_interface 0.0.6

Rust language library for communication with TMUX via CLI
Documentation

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 new_session = NewSession {
        detached: Some(true),
        session_name: Some("session_name"),
        ..Default::default()
    };
    tmux.new_session(Some(&new_session)).unwrap();
    let attach_session = AttachSession {
        target_session: Some("session_name"),
        ..Default::default()
    };
    tmux.attach_session(Some(&attach)).unwrap();
    tmux.kill_session(None, None, Some("session_name")).unwrap();
    

Misc

  • Versions below 0.1.0 are first public releases, mostly for development and testing purposes. Do not use them in your Projects.

  • Used in mosaic - tmux manager

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:

  • a bug report
  • any feature suggestion
  • nice code contribution
  • an improvment idea
  • ...

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.