adof 0.11.0

ADOF - An Automatic Dot-files Organizer Friend
Documentation
1
2
3
4
5
6
7
8
9
10
11
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()?;
    } else {
        println!("First connect to remote");
    }
    Ok(())
}