mirror of
https://github.com/denoland/deno.git
synced 2025-07-08 05:45:07 +00:00
fmt
This commit is contained in:
parent
ee04ca62fd
commit
2025c978eb
3 changed files with 15 additions and 8 deletions
|
@ -787,7 +787,10 @@ async fn initialize_tunnel(
|
||||||
|
|
||||||
let factory = CliFactory::from_flags(Arc::new(flags.clone()));
|
let factory = CliFactory::from_flags(Arc::new(flags.clone()));
|
||||||
let cli_options = factory.cli_options()?;
|
let cli_options = factory.cli_options()?;
|
||||||
let deploy_config = cli_options.start_dir.to_deploy_config()?.expect("auth to be called");
|
let deploy_config = cli_options
|
||||||
|
.start_dir
|
||||||
|
.to_deploy_config()?
|
||||||
|
.expect("auth to be called");
|
||||||
|
|
||||||
eprintln!(
|
eprintln!(
|
||||||
"{}{}{}",
|
"{}{}{}",
|
||||||
|
|
|
@ -1834,12 +1834,14 @@ impl ConfigFile {
|
||||||
&self,
|
&self,
|
||||||
) -> Result<Option<DeployConfig>, ToInvalidConfigError> {
|
) -> Result<Option<DeployConfig>, ToInvalidConfigError> {
|
||||||
match &self.json.deploy {
|
match &self.json.deploy {
|
||||||
Some(config) => Ok(Some(serde_json::from_value(config.clone()).map_err(|error| {
|
Some(config) => {
|
||||||
ToInvalidConfigError::Parse {
|
Ok(Some(serde_json::from_value(config.clone()).map_err(
|
||||||
config: "deploy",
|
|error| ToInvalidConfigError::Parse {
|
||||||
source: error,
|
config: "deploy",
|
||||||
}
|
source: error,
|
||||||
})?)),
|
},
|
||||||
|
)?))
|
||||||
|
}
|
||||||
None => Ok(None),
|
None => Ok(None),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2000,7 +2000,9 @@ impl WorkspaceDirectory {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn to_deploy_config(&self) -> Result<Option<DeployConfig>, ToInvalidConfigError> {
|
pub fn to_deploy_config(
|
||||||
|
&self,
|
||||||
|
) -> Result<Option<DeployConfig>, ToInvalidConfigError> {
|
||||||
let config = if let Some(deno_json) = self.deno_json.as_ref() {
|
let config = if let Some(deno_json) = self.deno_json.as_ref() {
|
||||||
if let Some(config) = deno_json.member.to_deploy_config()? {
|
if let Some(config) = deno_json.member.to_deploy_config()? {
|
||||||
Some(config)
|
Some(config)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue