You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
println!("\n🔍 Executing 'kiro-cli translate' subcommand with input 'hello'...");
13
13
14
14
// Use stdin function for translate subcommand
15
-
println!("\n🔍 Testing kiro-cli translate subcommand to create and delete a project directory...");
16
-
let response = q_chat_helper::execute_q_subcommand_with_stdin("kiro-cli",&["translate"],Some("print the create a file with name testkirocli in current working directory."))?;
15
+
println!("\n🔍 Testing kiro-cli translate subcommand to create a file...");
16
+
let response = q_chat_helper::execute_q_subcommand_with_stdin("kiro-cli",&["translate"],Some("create a file with name testkirocli in current working directory"))?;
// If we got completions, verify they contain expected shell commands
30
+
assert!(response.contains("touch") || response.contains("echo") || response.contains(">"),"Expected shell command in response");
31
+
}
23
32
24
-
let insert_response = chat.send_key_input("\r")?;
25
-
println!("Select response: {}", insert_response);
33
+
// Test delete command translation
34
+
println!("\n🔍 Testing kiro-cli translate subcommand to delete a file...");
35
+
let delete_response = q_chat_helper::execute_q_subcommand_with_stdin("kiro-cli",&["translate"],Some("delete file testkirocli in current working directory"))?;
println!("\n🔍 Testing kiro-cli translate subcommand to delete created testkiro file...");
33
-
let response = q_chat_helper::execute_q_subcommand_with_stdin("kiro-cli",&["translate"],Some("print the delete file testkirocli in curent working directory."))?;
0 commit comments