(&self)
| 289 | |
| 290 | impl Command for Remote { |
| 291 | fn run(&self) -> CliResult<()> { |
| 292 | // Route every form through the service layer: the registry lives in |
| 293 | // the repository database, and the handler runs the exact domain |
| 294 | // call each local body makes. |
| 295 | if crate::commands::rpc::remote(self)? { |
| 296 | return Ok(()); |
| 297 | } |
| 298 | |
| 299 | match &self.command { |
| 300 | None => self.list_remotes(), |
| 301 | Some(RemoteSubcommand::Add(add)) => self.add_remote(add), |
| 302 | Some(RemoteSubcommand::Remove(remove)) => self.remove_remote(remove), |
| 303 | Some(RemoteSubcommand::SetUrl(set_url)) => self.set_url(set_url), |
| 304 | Some(RemoteSubcommand::Rename(rename)) => self.rename_remote(rename), |
| 305 | Some(RemoteSubcommand::Default(default)) => self.set_default(default), |
| 306 | } |
| 307 | } |
| 308 | } |
| 309 | |
| 310 | // Tests |
nothing calls this directly
no test coverage detected