mirror of
https://github.com/denoland/deno.git
synced 2025-10-02 15:14:33 +00:00
feat(cli): add "--no-clear-screen" flag (#13454)
This commit adds "--no-clear-screen" flag which can be used with "--watch" flag to disable clearing of terminal screen on each file change.
This commit is contained in:
parent
3e566bb457
commit
5490cfed20
8 changed files with 321 additions and 37 deletions
|
@ -1279,7 +1279,15 @@ pub async fn run_tests_with_watch(
|
|||
}
|
||||
};
|
||||
|
||||
file_watcher::watch_func(resolver, operation, "Test").await?;
|
||||
file_watcher::watch_func(
|
||||
resolver,
|
||||
operation,
|
||||
file_watcher::PrintConfig {
|
||||
job_name: "Test".to_string(),
|
||||
clear_screen: !flags.no_clear_screen,
|
||||
},
|
||||
)
|
||||
.await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue