kot/src/main.rs
Shaun Reed a01ab6b532 Improve CLI
+ Add repository URL as valid input for dotfiles
+ Add regex, chrono crates
+ Add custom error types for Kot
+ Add uninstallation of dotfiles to revert changes when error is
  encountered
+ Update README, help text
2022-05-29 19:19:42 -04:00

28 lines
1.2 KiB
Rust

/*##############################################################################
## Author: Shaun Reed ##
## Legal: All Content (c) 2021 Shaun Reed, all rights reserved ##
## About: Main entry point for Linux configuration manager kot ##
## ##
## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ##
##############################################################################*/
use crate::kot::kerror::ErrorKind;
mod kot;
// =============================================================================
// MAIN ENTRY-POINT
// =============================================================================
// -----------------------------------------------------------------------------
fn main() -> kot::Result<()> {
// Call augmented kot::cli::from_args() to parse CLI arguments
let mut args = kot::kcli::from_args()?;
// At this point all paths exist and have been converted to absolute paths
println!("args: {:?}\n", args);
// Apply CLI arguments and attempt to install dotfiles
return kot::handle_args(&mut args);
}