aipack 0.8.22

Command Agent runner to accelerate production coding with genai.
1
2
3
4
5
6
7
8
9
10
/// Checks if the user's answer is "yes".
///
/// Returns true if the input matches "Y" or "YES" (case insensitive).
///
/// NOTE: This normalizes the logic for what is considered a "yes" response.
///
pub fn is_input_yes(input: &str) -> bool {
	let input = input.trim();
	input.eq_ignore_ascii_case("y") || input.eq_ignore_ascii_case("yes")
}