push
1 of 39 new or added lines in 5 files covered. (2.56%)
216 of 370 relevant lines covered (58.38%)
1.25 hits per line
1 |
use std::env; |
|
2 |
|
|
3 |
use super::GetTextResult; |
|
4 |
|
|
NEW
|
pub fn get_text(depth: usize) -> Option<GetTextResult> { |
× |
6 |
env::var("TMUX").ok()?;
|
× |
7 |
|
|
NEW
|
Some(GetTextResult { |
× |
9 |
cmd: "tmux", |
|
NEW
|
args: vec![ |
× |
NEW
|
"capture-pane".to_string(),
|
× |
NEW
|
"-p".to_string(),
|
× |
NEW
|
"-S".to_string(),
|
× |
NEW
|
format!("-{}", depth),
|
× |
15 |
], |
|
16 |
needs_processing: true,
|
|
17 |
}) |
|
18 |
} |