mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
refactor(cli/tools): move flag and config logic to CliOptions (#17008)
Co-authored-by: David Sherret <dsherret@gmail.com>
This commit is contained in:
parent
fac6447815
commit
84ef26ac9b
15 changed files with 914 additions and 772 deletions
|
@ -107,9 +107,13 @@ where
|
|||
log::debug!("File change ignored")
|
||||
}
|
||||
ResolutionResult::Restart {
|
||||
paths_to_watch,
|
||||
mut paths_to_watch,
|
||||
result,
|
||||
} => {
|
||||
// watch the current directory when empty
|
||||
if paths_to_watch.is_empty() {
|
||||
paths_to_watch.push(PathBuf::from("."));
|
||||
}
|
||||
return (paths_to_watch, result);
|
||||
}
|
||||
}
|
||||
|
@ -190,9 +194,13 @@ where
|
|||
print_after_restart();
|
||||
}
|
||||
ResolutionResult::Restart {
|
||||
paths_to_watch: paths,
|
||||
paths_to_watch: mut paths,
|
||||
result,
|
||||
} => {
|
||||
// watch the current directory when empty
|
||||
if paths.is_empty() {
|
||||
paths.push(PathBuf::from("."));
|
||||
}
|
||||
paths_to_watch = paths;
|
||||
resolution_result = result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue