2021-09-28 18:54:37 -04:00
|
|
|
/*##############################################################################
|
|
|
|
## 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 ##
|
|
|
|
##############################################################################*/
|
|
|
|
|
2022-05-29 19:19:42 -04:00
|
|
|
use crate::kot::kerror::ErrorKind;
|
2021-12-29 13:31:09 -05:00
|
|
|
|
2021-09-28 18:54:37 -04:00
|
|
|
mod kot;
|
|
|
|
|
|
|
|
// =============================================================================
|
|
|
|
// MAIN ENTRY-POINT
|
|
|
|
// =============================================================================
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
2021-12-29 13:31:09 -05:00
|
|
|
fn main() -> kot::Result<()> {
|
2021-12-26 19:08:58 -05:00
|
|
|
// Call augmented kot::cli::from_args() to parse CLI arguments
|
2022-05-29 19:19:42 -04:00
|
|
|
let mut args = kot::kcli::from_args()?;
|
2021-12-26 19:08:58 -05:00
|
|
|
// At this point all paths exist and have been converted to absolute paths
|
2021-09-28 18:54:37 -04:00
|
|
|
println!("args: {:?}\n", args);
|
|
|
|
|
2022-05-29 19:19:42 -04:00
|
|
|
// Apply CLI arguments and attempt to install dotfiles
|
|
|
|
return kot::handle_args(&mut args);
|
2021-09-25 13:39:37 -04:00
|
|
|
}
|