mirror of
https://github.com/denoland/deno.git
synced 2025-09-30 14:11:14 +00:00
feat(cli): add origin data dir to deno info (#10589)
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com> Co-authored-by: Luca Casonato <lucacasonato@yahoo.com> Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
This commit is contained in:
parent
d5d59bb794
commit
b21fa78a1e
11 changed files with 75 additions and 18 deletions
|
@ -41,7 +41,7 @@ async fn main() -> Result<(), AnyError> {
|
|||
no_color: false,
|
||||
get_error_class_fn: Some(&get_error_class_name),
|
||||
location: None,
|
||||
location_data_dir: None,
|
||||
origin_storage_dir: None,
|
||||
blob_url_store: BlobUrlStore::default(),
|
||||
broadcast_channel: InMemoryBroadcastChannel::default(),
|
||||
};
|
||||
|
|
|
@ -69,7 +69,7 @@ pub struct WorkerOptions {
|
|||
pub no_color: bool,
|
||||
pub get_error_class_fn: Option<GetErrorClassFn>,
|
||||
pub location: Option<Url>,
|
||||
pub location_data_dir: Option<std::path::PathBuf>,
|
||||
pub origin_storage_dir: Option<std::path::PathBuf>,
|
||||
pub blob_url_store: BlobUrlStore,
|
||||
pub broadcast_channel: InMemoryBroadcastChannel,
|
||||
}
|
||||
|
@ -106,7 +106,7 @@ impl MainWorker {
|
|||
options.user_agent.clone(),
|
||||
options.ca_data.clone(),
|
||||
),
|
||||
deno_webstorage::init(options.location_data_dir.clone()),
|
||||
deno_webstorage::init(options.origin_storage_dir.clone()),
|
||||
deno_crypto::init(options.seed),
|
||||
deno_broadcast_channel::init(
|
||||
options.broadcast_channel.clone(),
|
||||
|
@ -307,7 +307,7 @@ mod tests {
|
|||
no_color: true,
|
||||
get_error_class_fn: None,
|
||||
location: None,
|
||||
location_data_dir: None,
|
||||
origin_storage_dir: None,
|
||||
blob_url_store: BlobUrlStore::default(),
|
||||
broadcast_channel: InMemoryBroadcastChannel::default(),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue