Skip to content

Commit

Permalink
fix: make nice (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
brokad authored Dec 7, 2022
1 parent 0c4eb94 commit 6bbda80
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions cargo-shuttle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -562,15 +562,19 @@ impl Shuttle {
pb.set_message(format!("{project}"));
project = client.get_project(project_name).await?;
}
pb.finish_with_message("Done");
pb.finish_and_clear();
println!("{project}");
Ok(())
}

async fn project_delete(&self, client: &Client) -> Result<()> {
let project = client.delete_project(self.ctx.project_name()).await?;

println!("{project}");
self.wait_with_spinner(
&[project::State::Destroyed, project::State::Errored],
Client::delete_project,
self.ctx.project_name(),
client,
)
.await?;

Ok(())
}
Expand Down

0 comments on commit 6bbda80

Please sign in to comment.