Simplify and make it not break on linux (#7813)

Co-authored-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
Douwe Osinga
2026-03-11 13:04:57 -04:00
committed by GitHub
parent da51b4c19f
commit e9528d5539
+1 -22
View File
@@ -400,12 +400,7 @@ fn parse_plan_command(input: String) -> Option<InputResult> {
}
fn get_input_prompt_string() -> String {
let goose = "🪿";
if cfg!(target_os = "windows") {
format!("{goose} ")
} else {
format!("{} ", console::style(goose))
}
"🪿 ".to_string()
}
fn print_help() {
@@ -692,20 +687,4 @@ mod tests {
let result = handle_slash_command("/recipe /path/to/file.txt");
assert!(matches!(result, Some(InputResult::Retry)));
}
#[test]
fn test_get_input_prompt_string() {
let prompt = get_input_prompt_string();
// Prompt should always end with a space
assert!(prompt.ends_with(' '));
// Prompt should contain the goose emoji
assert!(prompt.contains("🪿"));
#[cfg(target_os = "windows")]
{
assert_eq!(prompt, "🪿 ");
}
}
}