Skip to content

Commit 2b5afa3

Browse files
committed
style: rustfmt fix for cloud status command
1 parent bb642ad commit 2b5afa3

1 file changed

Lines changed: 6 additions & 25 deletions

File tree

  • crates/orchestrator-cli/src/services

crates/orchestrator-cli/src/services/cloud.rs

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -525,12 +525,7 @@ async fn handle_destroy(args: DeployDestroyArgs, project_root: &str, json: bool)
525525

526526
let client = build_client(&token)?;
527527
let resp = client
528-
.delete(&format!(
529-
"{}/api/cli/projects/{}/daemons/{}",
530-
server.trim_end_matches('/'),
531-
project_id,
532-
daemon_id
533-
))
528+
.delete(&format!("{}/api/cli/projects/{}/daemons/{}", server.trim_end_matches('/'), project_id, daemon_id))
534529
.send()
535530
.await
536531
.context("Failed to connect to daemon destruction endpoint")?;
@@ -549,7 +544,8 @@ async fn handle_destroy(args: DeployDestroyArgs, project_root: &str, json: bool)
549544
deploy_config.status = Some("destroyed".to_string());
550545
deploy_config.save_for_project(project_root)?;
551546

552-
let result = DeployDestroyResult { app_name: args.app_name, status: "destroyed".to_string(), machines_destroyed: 1 };
547+
let result =
548+
DeployDestroyResult { app_name: args.app_name, status: "destroyed".to_string(), machines_destroyed: 1 };
553549

554550
if !json {
555551
eprintln!("Deployment destroyed successfully!");
@@ -845,12 +841,7 @@ async fn handle_start(args: DeployStartArgs, project_root: &str, json: bool) ->
845841

846842
let client = build_client(&token)?;
847843
let resp = client
848-
.post(&format!(
849-
"{}/api/cli/projects/{}/daemons/{}/start",
850-
server.trim_end_matches('/'),
851-
project_id,
852-
daemon_id
853-
))
844+
.post(&format!("{}/api/cli/projects/{}/daemons/{}/start", server.trim_end_matches('/'), project_id, daemon_id))
854845
.send()
855846
.await
856847
.context("Failed to connect to daemon start endpoint")?;
@@ -910,12 +901,7 @@ async fn handle_stop(args: DeployStopArgs, project_root: &str, json: bool) -> Re
910901

911902
let client = build_client(&token)?;
912903
let resp = client
913-
.post(&format!(
914-
"{}/api/cli/projects/{}/daemons/{}/stop",
915-
server.trim_end_matches('/'),
916-
project_id,
917-
daemon_id
918-
))
904+
.post(&format!("{}/api/cli/projects/{}/daemons/{}/stop", server.trim_end_matches('/'), project_id, daemon_id))
919905
.send()
920906
.await
921907
.context("Failed to connect to daemon stop endpoint")?;
@@ -976,12 +962,7 @@ async fn handle_status_deploy(args: DeployStatusArgs, project_root: &str, json:
976962

977963
let client = build_client(&token)?;
978964
let resp = client
979-
.get(&format!(
980-
"{}/api/cli/projects/{}/daemons/{}",
981-
server.trim_end_matches('/'),
982-
project_id,
983-
daemon_id
984-
))
965+
.get(&format!("{}/api/cli/projects/{}/daemons/{}", server.trim_end_matches('/'), project_id, daemon_id))
985966
.send()
986967
.await
987968
.context("Failed to connect to daemon status endpoint")?;

0 commit comments

Comments
 (0)