Add basic gitignore functionality
No support for wildcards and exact matches might screw up nested directories. The Globbing functionality seems like its going to be a pain to properly match up.
This commit is contained in:
@@ -12,9 +12,9 @@ pub struct ColorPrinter<'a> {
|
||||
pub file_match: &'a FileMatch,
|
||||
}
|
||||
|
||||
struct SimplePrinter<'a> {
|
||||
config: &'a Config,
|
||||
file_match: &'a FileMatch,
|
||||
pub struct SimplePrinter<'a> {
|
||||
pub config: &'a Config,
|
||||
pub file_match: &'a FileMatch,
|
||||
}
|
||||
|
||||
impl<'a> Printer for SimplePrinter<'a> {
|
||||
@@ -71,6 +71,7 @@ impl<'a> Printer for ColorPrinter<'a> {
|
||||
};
|
||||
|
||||
let mut term = term::stdout().unwrap();
|
||||
|
||||
term.fg(term::color::YELLOW).unwrap();
|
||||
term.attr(term::Attr::Bold).unwrap();
|
||||
simple_printer.print_file_name();
|
||||
|
||||
Reference in New Issue
Block a user