added project information to the cli prompt
This commit is contained in:
@@ -177,9 +177,20 @@ pub fn cli(interactive: bool,
|
|||||||
fingerprint: bool,
|
fingerprint: bool,
|
||||||
vault_name: String) -> Option<Vec<JoinHandle<()>>>{
|
vault_name: String) -> Option<Vec<JoinHandle<()>>>{
|
||||||
let mut threads = Vec::new();
|
let mut threads = Vec::new();
|
||||||
|
let active_project = menu::get_active_project(&projects);
|
||||||
if interactive{
|
if interactive{
|
||||||
let mut loopize = true;
|
let mut loopize = true;
|
||||||
while loopize{
|
while loopize{
|
||||||
|
print!("
|
||||||
|
Active Project: {}, {}
|
||||||
|
Project Status: {}
|
||||||
|
Files Folder: {}
|
||||||
|
Notes Folder: {}
|
||||||
|
Boxname: {}
|
||||||
|
Obsidian URI: {}
|
||||||
|
|
||||||
|
|
||||||
|
", active_project.customer, active_project.project_name, active_project.stage, active_project.files_folder.display(), active_project.notes_folder.display(), active_project.boxname, "coming soon");
|
||||||
let command = get_user_input("command?");
|
let command = get_user_input("command?");
|
||||||
match command.as_str(){
|
match command.as_str(){
|
||||||
"exit" | "main menu" | "mm" | "menu" => loopize = false,
|
"exit" | "main menu" | "mm" | "menu" => loopize = false,
|
||||||
|
|||||||
Reference in New Issue
Block a user