diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-03-12 02:35:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-12 02:35:18 +0100 |
commit | 9d9e60b694888ffc20def928ffcd4da11da8be62 (patch) | |
tree | 98af8a152e2bd693d763b87645ddc454a9f67328 /cli/tools/task.rs | |
parent | 1a764790f2b3622df5a1b20f0d05ff5f94c256b2 (diff) |
feat(task): log task script (#13922)
Logs task name and associated script with additional args.
This is disabled if "--quiet/-q" flag is present.
Diffstat (limited to 'cli/tools/task.rs')
-rw-r--r-- | cli/tools/task.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tools/task.rs b/cli/tools/task.rs index 0e863dbb8..3003bdfcc 100644 --- a/cli/tools/task.rs +++ b/cli/tools/task.rs @@ -81,6 +81,12 @@ pub async fn execute_script( .collect::<Vec<_>>() .join(" "); let script = format!("{} {}", script, additional_args); + log::info!( + "{} {} {}", + colors::green("Task"), + colors::cyan(&task_name), + script + ); let seq_list = deno_task_shell::parser::parse(&script) .with_context(|| format!("Error parsing script '{}'.", task_name))?; let env_vars = std::env::vars().collect::<HashMap<String, String>>(); |