diff options
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/cli/main.rs b/cli/main.rs index 8d0a7a2ba..3e49380d9 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -329,6 +329,8 @@ fn print_cache_info( origin_dir.join(&checksum::gen(&[location.to_string().as_bytes()])); } + let local_storage_dir = origin_dir.join("local_storage"); + if json { let mut output = json!({ "denoDir": deno_dir, @@ -339,34 +341,41 @@ fn print_cache_info( }); if location.is_some() { - output["localStorage"] = - serde_json::to_value(origin_dir.join("local_storage"))?; + output["localStorage"] = serde_json::to_value(local_storage_dir)?; } write_json_to_stdout(&output) } else { - println!("{} {:?}", colors::bold("DENO_DIR location:"), deno_dir); println!( - "{} {:?}", + "{} {}", + colors::bold("DENO_DIR location:"), + deno_dir.display() + ); + println!( + "{} {}", colors::bold("Remote modules cache:"), - modules_cache + modules_cache.display() ); println!( - "{} {:?}", + "{} {}", colors::bold("Emitted modules cache:"), - typescript_cache + typescript_cache.display() ); println!( - "{} {:?}", + "{} {}", colors::bold("Language server registries cache:"), - registry_cache, + registry_cache.display(), + ); + println!( + "{} {}", + colors::bold("Origin storage:"), + origin_dir.display() ); - println!("{} {:?}", colors::bold("Origin storage:"), origin_dir); if location.is_some() { println!( - "{} {:?}", + "{} {}", colors::bold("Local Storage:"), - origin_dir.join("local_storage"), + local_storage_dir.display(), ); } Ok(()) |