Returns the expected CLI binary path.
()
| 42 | |
| 43 | /// Returns the expected CLI binary path. |
| 44 | fn cli_binary_path() -> PathBuf { |
| 45 | let profile = "release"; |
| 46 | let cli_name = if cfg!(windows) { |
| 47 | "spacetimedb-cli.exe" |
| 48 | } else { |
| 49 | "spacetimedb-cli" |
| 50 | }; |
| 51 | target_dir().join(profile).join(cli_name) |
| 52 | } |
| 53 | |
| 54 | /// Lazily-initialized path to the pre-built CLI binary. |
| 55 | static CLI_BINARY_PATH: OnceLock<PathBuf> = OnceLock::new(); |
no test coverage detected
searching dependent graphs…