diff options
author | haturatu <taro@eyes4you.org> | 2024-10-13 02:17:02 +0900 |
---|---|---|
committer | haturatu <taro@eyes4you.org> | 2024-10-13 02:17:02 +0900 |
commit | 4da77059dfd5b8d7591aa8e3b9f04386fbdce221 (patch) | |
tree | 5582b93668e86617c1320af508a113a57c7c0b3e /cli/tools/info.rs | |
parent | 9117a9a43cba86d3112f86b10c5ea77baa2c6007 (diff) |
wip
Diffstat (limited to 'cli/tools/info.rs')
-rw-r--r-- | cli/tools/info.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/tools/info.rs b/cli/tools/info.rs index 1c83abe3b..16f8b29ab 100644 --- a/cli/tools/info.rs +++ b/cli/tools/info.rs @@ -5,6 +5,7 @@ use std::collections::HashSet; use std::fmt; use std::fmt::Write; use std::sync::Arc; +use std::env; use deno_ast::ModuleSpecifier; use deno_core::anyhow::bail; @@ -120,6 +121,7 @@ fn print_cache_info( let registry_cache = dir.registries_folder_path(); let mut origin_dir = dir.origin_data_folder_path(); let deno_dir = dir.root_path_for_display().to_string(); + let temp_dir = env::temp_dir(); if let Some(location) = &location { origin_dir = @@ -137,6 +139,7 @@ fn print_cache_info( "typescriptCache": typescript_cache, "registryCache": registry_cache, "originStorage": origin_dir, + "tempDir": temp_dir, }); if location.is_some() { @@ -171,6 +174,11 @@ fn print_cache_info( colors::bold("Origin storage:"), origin_dir.display() ); + println!( + "{} {}", + colors::bold("Temp directory:"), + temp_dir.display() + ); if location.is_some() { println!( "{} {}", |