changed the cli to a tui environment.

This commit is contained in:
pyro committed 2026-05-20 13:33:53 -05:00
1 parent 3eeecb0010
commit a907de8ff3
6 files changed
+1376 -217

No files matched your search

+4
View File
@@ -31,6 +31,9 @@ pub fn install() -> Result<(), Box<dyn Error>> {
let upcoming_notes_path = PathBuf::from(get_user_input(
"enter the path to store upcoming project notes, or none if you want to be prompted everytime",
)?);
let template_box = get_user_input(
"enter the name of your template distrobox, NONE in all caps if you are not using distrobox",
)?;
config_path.push("client.conf");
projects_path.push("default");
create_dir_all(&projects_path)?;
@@ -60,6 +63,7 @@ pub fn install() -> Result<(), Box<dyn Error>> {
client_config_file
.write(format!("upcoming_notes: {}\n", upcoming_notes_path.display()).as_bytes())?;
client_config_file.write(format!("module_path: {}\n", module_path.display()).as_bytes())?;
client_config_file.write(format!("template_box: {}\n", template_box).as_bytes())?;
} else {
eprintln!("error finding home directory!");
exit(1);