radicle-cli 0.20.0

Radicle CLI
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::git;
use crate::terminal as term;

pub fn run(name: &str, repository: &git::Repository) -> anyhow::Result<()> {
    if !git::is_remote(repository, name)? {
        anyhow::bail!("remote `{name}` not found");
    }
    repository.remote_delete(name)?;
    term::success!("Remote `{name}` removed");
    Ok(())
}