pub fn show_interactive(
result: &DiffResult,
color: bool,
) -> AppResult<Vec<DiffEntry>>Expand description
Displays interactive diff with user prompts for selective application.
Presents each change individually and asks for user confirmation before applying. Supports batch operations (apply all, quit) for efficiency.
§Commands
y/yes- Apply this changen/no- Skip this changea/all- Apply all remaining changesq/quit- Exit without processing remaining changes
§Arguments
result- Diff results to display
§Returns
AppResult<Vec<DiffEntry>> - Selected entries for application, or error
§Errors
Returns error if I/O operations fail during user input reading.
§Examples
use cargo_quality::differ::{DiffResult, display::show_interactive};
let result = DiffResult::new();
let selected = show_interactive(&result, false).unwrap();
println!("Selected {} changes", selected.len());