Move tmux to its own module

This commit is contained in:
Roey Darwish Dror
2018-09-04 11:05:54 +03:00
parent bad68804ed
commit 6f4d99aa40
3 changed files with 54 additions and 44 deletions

View File

@@ -21,6 +21,8 @@ mod linux;
#[cfg(target_os = "macos")]
mod macos;
#[cfg(unix)]
mod tmux;
#[cfg(unix)]
mod unix;
#[cfg(target_os = "windows")]
mod windows;
@@ -101,7 +103,7 @@ fn run() -> Result<(), Error> {
if matches.is_present("tmux") && env::var("TMUX").is_err() {
#[cfg(unix)]
{
unix::run_in_tmux();
tmux::run_in_tmux();
}
}
@@ -193,7 +195,7 @@ fn run() -> Result<(), Error> {
&mut terminal,
));
report.push_result(execute(
|terminal| unix::run_tpm(&base_dirs, terminal, dry_run),
|terminal| tmux::run_tpm(&base_dirs, terminal, dry_run),
&mut terminal,
));
}