(self, paths: &SpacetimePaths)
| 33 | |
| 34 | impl Install { |
| 35 | pub(super) fn exec(self, paths: &SpacetimePaths) -> anyhow::Result<()> { |
| 36 | super::tokio_block_on(async { |
| 37 | anyhow::ensure!( |
| 38 | self.edition == ["standalone"], |
| 39 | "can only install spacetimedb-standalone at the moment" |
| 40 | ); |
| 41 | let client = super::reqwest_client()?; |
| 42 | let (version, _) = download_and_install(&client, Some(self.version), self.artifact_name, paths).await?; |
| 43 | if self.r#use { |
| 44 | paths.cli_bin_dir.set_current_version(&version.to_string())?; |
| 45 | } |
| 46 | Ok(()) |
| 47 | })? |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | pub(super) fn make_progress_bar() -> ProgressBar { |
nothing calls this directly
no test coverage detected