blob: 39ef2c3d55155465548289b4b6f44fc0f0faff45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
use colours::Colours;
use file::File;
use ansi_term::ANSIStrings;
use super::filename;
#[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)));
}
}
}
|