Started adding error handling, fixed directories not being created if they do not exist, added config file

This commit is contained in:
2024-01-30 21:50:04 -06:00
parent bef3769cae
commit 608cd39837
6 changed files with 153 additions and 79 deletions

18
src/args/mod.rs Normal file
View File

@@ -0,0 +1,18 @@
use clap::{Arg, Command, ArgAction, ArgMatches};
pub fn parse_args() -> ArgMatches {
let matches = Command::new("dotfiles")
.version("0.1")
.author("Ethan Simmons")
.about("Manages dotfiles")
.arg(Arg::new("from-git")
.short('f')
.long("from-git")
.action(ArgAction::SetTrue)
)
.get_matches();
matches
}