adof 0.12.0

ADOF - An Automatic Dot-files Organizer Friend
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::fs;

use anyhow::Context;

use super::*;

pub fn create_git_ignore() -> Result<()> {
    let adof_dir = adof::get_adof_dir();
    let git_ignore_file = format!("{}/.gitignore", adof_dir);
    fs::write(&git_ignore_file, b"# add files below")
        .context("Failed to crate the .gitignore file")?;
    Ok(())
}