Add the option to hide both the task and command lines in the task output (#20920)
The goal is to be able to hide these lines from a task output: ```sh ⏵ Task `...` finished successfully ⏵ Command: ... ``` --------- Co-authored-by: Peter Tripp <peter@zed.dev>
This commit is contained in:
co-authored by
Peter Tripp
parent
cb8028c092
commit
659b1c9dcf
@@ -1,4 +1,5 @@
|
||||
use std::path::PathBuf;
|
||||
use util::serde::default_true;
|
||||
|
||||
use anyhow::{bail, Context};
|
||||
use collections::{HashMap, HashSet};
|
||||
@@ -57,6 +58,12 @@ pub struct TaskTemplate {
|
||||
/// Which shell to use when spawning the task.
|
||||
#[serde(default)]
|
||||
pub shell: Shell,
|
||||
/// Whether to show the task line in the task output.
|
||||
#[serde(default = "default_true")]
|
||||
pub show_summary: bool,
|
||||
/// Whether to show the command line in the task output.
|
||||
#[serde(default = "default_true")]
|
||||
pub show_command: bool,
|
||||
}
|
||||
|
||||
/// What to do with the terminal pane and tab, after the command was started.
|
||||
@@ -230,6 +237,8 @@ impl TaskTemplate {
|
||||
reveal: self.reveal,
|
||||
hide: self.hide,
|
||||
shell: self.shell.clone(),
|
||||
show_summary: self.show_summary,
|
||||
show_command: self.show_command,
|
||||
}),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user