3 files changed
+5
-5
crates/cli/src/deploy/config.rs
+1
-1
@@ -16,7 +16,7 @@ use {
16
std::{fs, path::Path},
17
};
18
19
-pub(crate) async fn check_config(
19
+pub(crate) async fn get_config(
20
env: Environment,
21
access_token: Option<&str>,
22
) -> Result<Config, ErrorResponse> {
crates/cli/src/deploy/process_deploy.rs
+2
-2
@@ -4,7 +4,7 @@ use {
4
cli::CommandResult,
5
client,
6
deploy::{
7
- config::{check_config, check_project, credentials},
7
+ config::{check_project, credentials, get_config},
8
detect_runner::detect_runner,
9
git::remote_deployment_setup,
10
remote_messages::{build_next_app, start_server},
@@ -39,7 +39,7 @@ pub async fn process_deploy(env: Environment) -> Result<CommandResult> {
39
let access_token = get_smb_token(env)?;
40
41
// Check config.
42
- let config = check_config(env, Some(&access_token)).await?;
42
+ let config = get_config(env, Some(&access_token)).await?;
43
44
// Check runner.
45
let runner = detect_runner().await?;
crates/cli/src/project/deployment.rs
+2
-2
@@ -2,7 +2,7 @@ use crate::client;
2
use crate::token::get_smb_token::get_smb_token;
3
use crate::{
4
cli::CommandResult,
5
- deploy::config::{check_config, check_project},
5
+ deploy::config::{check_project, get_config},
6
ui::{succeed_message, succeed_symbol},
7
};
8
use anyhow::Result;
@@ -19,7 +19,7 @@ pub(crate) async fn process_deployment(
19
let mut spinner: Spinner =
20
Spinner::new(spinners::Spinners::Hamburger, succeed_message("Loading"));
21
// Load project id from .smb/config.toml
22
- let config = check_config(env, None).await?;
22
+ let config = get_config(env, None).await?;
23
24
let access_token = get_smb_token(env)?;
25