updated remove project logic to check if the client folders are empty,
and if they are deltes them.
This commit is contained in:
+8
-11
@@ -226,17 +226,14 @@ pub fn run_tui(
|
||||
state.output.push("\n".to_string());
|
||||
state.output.push(format!("[user input] > {}", trimmed));
|
||||
state.output.push("\n".to_string());
|
||||
if let Some(action) = state.prompt.action.clone() {
|
||||
match action {
|
||||
ToolMessage::RemoveProject => {
|
||||
if trimmed.to_lowercase().contains("y") {
|
||||
state.execute_command(
|
||||
"remove_project_confirm",
|
||||
None,
|
||||
)?;
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
let prompt = state.prompt.clone();
|
||||
if prompt.action.is_some() {
|
||||
state.prompt.responses.push(trimmed.clone());
|
||||
if state.prompt.responses.len() == state.prompt.num_responses {
|
||||
state.execute_command(
|
||||
prompt.execute_command.as_str(),
|
||||
None,
|
||||
)?;
|
||||
}
|
||||
}
|
||||
let (command, args) =
|
||||
|
||||
Reference in New Issue
Block a user