basic_quick_lib 0.3.0

A basic lib to do some basic stuff with cli programming
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::cli_util::pause;

pub fn home_dir() -> String {
  dirs::home_dir().unwrap_or_else(|| {
    println!("WARNING: Cannot locate home dir. Using executable path instead");
		pause();
    Default::default()
  }).to_str().unwrap_or_else(|| {
		println!("WARNING: Failed to transfer home dir into string. Using executable path instead");
		pause();
		Default::default()
	}).to_string()
}