mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-25 17:57:19 +02:00
Wait with output
This commit is contained in:
parent
885dc5b44f
commit
f7217aee8e
1 changed files with 6 additions and 5 deletions
11
src/app.rs
11
src/app.rs
|
@ -420,17 +420,18 @@ impl App {
|
||||||
|
|
||||||
// TODO: fix vim hanging
|
// TODO: fix vim hanging
|
||||||
match r {
|
match r {
|
||||||
Ok(mut child) => {
|
Ok(child) => {
|
||||||
child
|
let output = child
|
||||||
.wait()
|
.wait_with_output()
|
||||||
.expect(
|
.expect(
|
||||||
&format!(
|
&format!(
|
||||||
"Cannot run `task edit` for task `{}`. Check documentation for more information",
|
"Cannot run `task edit` for task `{}`. Check documentation for more information",
|
||||||
task_id
|
task_id
|
||||||
)[..],
|
)[..],
|
||||||
);
|
);
|
||||||
// TODO: should we sleep here to show output of the editor?
|
if !output.status.success() {
|
||||||
// std::thread::sleep(std::time::Duration::from_millis(500));
|
// TODO: show error message here
|
||||||
|
}
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
println!("Vim failed to start");
|
println!("Vim failed to start");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue