Convenience: map a [`atomic_remote::RemoteError`] to a [`CliError`].
(e: atomic_remote::RemoteError)
| 296 | |
| 297 | /// Convenience: map a [`atomic_remote::RemoteError`] to a [`CliError`]. |
| 298 | pub fn remote_err(e: atomic_remote::RemoteError) -> CliError { |
| 299 | CliError::RemoteError { |
| 300 | message: e.to_string(), |
| 301 | url: None, |
| 302 | } |
| 303 | } |
| 304 | |
| 305 | /// Resolve the org slug for a command, with fallback to the configured default. |
| 306 | /// |
no outgoing calls