Skip to content

Commit

Permalink
remove unnecessary public entities from rmuxinator module
Browse files Browse the repository at this point in the history
  • Loading branch information
Pete Doherty committed Mar 27, 2024
1 parent 544bac0 commit badda57
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,18 @@ fn run_tmux_command(command: &[String], wait: bool) -> Result<Output, Box<dyn Er
}
}

pub trait TmuxCommandRunner {
trait TmuxCommandRunner {
fn run_tmux_command(&self, command: &[String], wait: bool) -> Result<Output, Box<dyn Error>>;
}

pub struct TmuxWrapper;
struct TmuxWrapper;

impl TmuxCommandRunner for TmuxWrapper {
fn run_tmux_command(&self, command: &[String], wait: bool) -> Result<Output, Box<dyn Error>> {
run_tmux_command(command, wait)
}
}

fn build_pane_args(session_name: &str, window_index: &usize) -> Vec<String> {
vec![
String::from("split-window"),
Expand Down

0 comments on commit badda57

Please sign in to comment.