blob: 07c435171050499d3c43c6e5b3988fa077936565 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
use ansi_term::ANSIStrings;
use file::File;
use super::filename;
use super::colours::Colours;
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct Lines {
pub colours: Colours,
}
/// The lines view literally just displays each file, line-by-line.
impl Lines {
pub fn view(&self, files: Vec<File>) {
for file in files {
println!("{}", ANSIStrings(&filename(file, &self.colours, true)));
}
}
}
|