Add comments and TODOs
+ Resolve all build warnings
This commit is contained in:
13
src/main.rs
13
src/main.rs
@@ -15,12 +15,21 @@ mod kot;
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
fn main() {
|
||||
// Call augmented kot::cli::from_args() to parse CLI arguments
|
||||
let args = kot::cli::from_args();
|
||||
// At this point all paths exist and have been converted to absolute paths
|
||||
println!("args: {:?}\n", args);
|
||||
|
||||
// Attempt to install the configurations, checking for collisions
|
||||
match kot::install_configs(&args) {
|
||||
Err(e) => println!("Error: {:?}\n+ Configs used: {:?}\n+ Install directory: {:?}\n",
|
||||
e.kind(), args.configs_dir, args.install_dir),
|
||||
Err(e) => {
|
||||
// If there was an error, show the error type and run settings
|
||||
println!(
|
||||
"Error: {:?}\n+ Configs used: {:?}\n+ Install directory: {:?}\n",
|
||||
e.kind(), args.dotfiles_dir, args.install_dir
|
||||
)
|
||||
},
|
||||
// Configurations installed successfully
|
||||
Ok(()) => (),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user