adof 0.12.0

ADOF - An Automatic Dot-files Organizer Friend
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::git::{is_remote_exist, remote::unlink_remote};
use anyhow::{Context, Result};

pub fn unlink() -> Result<()> {
    if is_remote_exist().context("Checking if remote exists")? {
        unlink_remote()?;
        println!("You have successfully removed the remote branch.");
    } else {
        println!("Remote branch is not configured.");
    }
    Ok(())
}