diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-08-14 12:04:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-14 13:04:07 +0200 |
commit | b325bf0a35baea1275f3be89506e34040bf35b21 (patch) | |
tree | 70708a25471f18b9ce0c2d83d76ca1b1d0fd60e4 /cli/main.rs | |
parent | 2f82873a88cbaea4ebe8e39b5aa7b57ed867512e (diff) |
feat(clean): add progress bar (#25026)
Closes https://github.com/denoland/deno/issues/25020
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/cli/main.rs b/cli/main.rs index 1b2640758..e8ecaa393 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -32,7 +32,6 @@ use crate::args::flags_from_vec; use crate::args::DenoSubcommand; use crate::args::Flags; use crate::args::DENO_FUTURE; -use crate::cache::DenoDir; use crate::graph_container::ModuleGraphContainer; use crate::util::display; use crate::util::v8::get_v8_flags_from_env; @@ -138,12 +137,7 @@ async fn run_subcommand(flags: Arc<Flags>) -> Result<i32, AnyError> { .await }), DenoSubcommand::Clean => spawn_subcommand(async move { - let deno_dir = DenoDir::new(None)?; - if deno_dir.root.exists() { - std::fs::remove_dir_all(&deno_dir.root)?; - log::info!("{} {}", colors::green("Removed"), deno_dir.root.display()); - } - Ok::<(), std::io::Error>(()) + tools::clean::clean() }), DenoSubcommand::Compile(compile_flags) => spawn_subcommand(async { tools::compile::compile(flags, compile_flags).await |