mirror of
https://github.com/sharkdp/bat
synced 2026-08-03 18:51:44 +00:00
Moved user_provided_filename to be contained within OrdinaryFile struct
This commit is contained in:
committed by
David Peter
parent
a3f8140fbe
commit
04fa84aea7
+5
-2
@@ -26,7 +26,7 @@ use bat::Controller;
|
||||
use directories::PROJECT_DIRS;
|
||||
|
||||
use bat::{
|
||||
config::{Config, InputFile, StyleComponent, StyleComponents},
|
||||
config::{Config, InputFile, OrdinaryFile, StyleComponent, StyleComponents},
|
||||
errors::*,
|
||||
HighlightingAssets,
|
||||
};
|
||||
@@ -167,7 +167,10 @@ fn run() -> Result<bool> {
|
||||
Ok(true)
|
||||
} else {
|
||||
let mut config = app.config()?;
|
||||
config.files = vec![InputFile::Ordinary(OsStr::new("cache"))];
|
||||
config.files = vec![InputFile::Ordinary(OrdinaryFile::new(
|
||||
OsStr::new("cache"),
|
||||
None,
|
||||
))];
|
||||
|
||||
run_controller(&config)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user