pub fn read_input_with_io<R: InputReader, W: OutputWriter>(
prompt: &str,
default_value: Option<&str>,
trim_whitespace: bool,
show_prompt: bool,
reader: &mut R,
writer: &mut W,
) -> Result<String, InputError>Expand description
Internal helper function to read input with various options This version accepts generic reader/writer for testing
ยงArguments
prompt- The prompt text to displaydefault_value- Optional default value to return if input is emptytrim_whitespace- Whether to trim leading/trailing whitespaceshow_prompt- Whether to display the promptreader- Input reader implementationwriter- Output writer implementation