[−][src]Function dishub::ops::unfollow_feeds::get_feeds_to_remove
pub fn get_feeds_to_remove<R: BufRead, W: Write>(
feeds: &[Feed],
input: &mut R,
output: &mut W
) -> Vec<String>
Prompt the user for the feed subjects to sunsubscribe from.
Will accept only subjects that exist in the supplied feeds.
Examples
assert_eq!(unfollow_feeds::get_feeds_to_remove( &[Feed::new("nabijaczleweli".to_string(), 10, 0), Feed::new("nabijaczleweli/dishub".to_string(), 11, 1), Feed::new("sehe".to_string(), 12, 2)], &mut BufReader::new(&b"nabijaczleweli\n\ nabijaczleweli/dishub\n"[..]), &mut Vec::new()), vec!["nabijaczleweli".to_string(), "nabijaczleweli/dishub".to_string()]);