diff options
author | Zheyu Zhang <zheyuzhang03@gmail.com> | 2022-02-01 00:39:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-31 17:39:39 +0100 |
commit | 5490cfed2000a063ef0baec500ab7d539203067c (patch) | |
tree | d121da8ad8274de65f77fbced5f452ecb1d7881a /cli/tools/test.rs | |
parent | 3e566bb457663cec57602e564f73ded817e426a8 (diff) |
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.
Diffstat (limited to 'cli/tools/test.rs')
-rw-r--r-- | cli/tools/test.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/cli/tools/test.rs b/cli/tools/test.rs index 5e2d74ecf..daae61d7f 100644 --- a/cli/tools/test.rs +++ b/cli/tools/test.rs @@ -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(()) } |