Add metadata information to cached assets

When saving/reading user-provided syntaxes or themes, `bat` will now maintain a
`metadata.yaml` file which includes information about the `bat` version which was
used to create the cached files. When loading cached files, we now print an error
if they have been created with an incompatible version

closes #882
This commit is contained in:
sharkdp authored and David Peter committed 2020-04-21 18:14:31 +02:00
1 parent c8273369cc
commit 72618db179
9 files changed
+186 -21

No files matched your search

+2
View File
@@ -2,6 +2,7 @@
#![recursion_limit = "1024"]
pub(crate) mod assets;
pub(crate) mod assets_metadata;
pub mod config;
pub(crate) mod controller;
mod decorations;
@@ -19,5 +20,6 @@ mod terminal;
pub(crate) mod wrap;
pub use assets::HighlightingAssets;
pub use assets_metadata::AssetsMetadata;
pub use controller::Controller;
pub use printer::{InteractivePrinter, Printer, SimplePrinter};