Error used when no server is configured — shared by the apex helpers.
(server_override: Option<&str>)
| 150 | |
| 151 | /// Error used when no server is configured — shared by the apex helpers. |
| 152 | fn server_url_missing(server_override: Option<&str>) -> CliError { |
| 153 | let hint = if let Some(name) = server_override { |
| 154 | format!("Server profile '{}' has no URL configured.", name) |
| 155 | } else { |
| 156 | "Server not configured. Run 'atomic identity register <server-url>' first.".to_string() |
| 157 | }; |
| 158 | CliError::Internal(anyhow::anyhow!("{}", hint)) |
| 159 | } |
| 160 | |
| 161 | /// Build an apex-scoped [`StorageClient`] authenticating as a **named** |
| 162 | /// identity rather than whichever one the server profile resolves to. |
no outgoing calls
no test coverage detected