Skip to content

Commit

Permalink
bin: Add custom assets metadata.yaml to --diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
Enselic committed Mar 3, 2022
1 parent 0655ecf commit a6a2b1d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/bin/bat/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ fn invoke_bugreport(app: &App) {
let pager = bat::config::get_pager_executable(app.matches.value_of("pager"))
.unwrap_or_else(|| "less".to_owned()); // FIXME: Avoid non-canonical path to "less".

let mut custom_assets_metadata = PROJECT_DIRS.cache_dir().to_path_buf();
custom_assets_metadata.push("metadata.yaml");

let mut report = bugreport!()
.info(SoftwareVersion::default())
.info(OperatingSystem::default())
Expand All @@ -254,6 +257,10 @@ fn invoke_bugreport(app: &App) {
"MANPAGER",
]))
.info(FileContent::new("Config file", config_file()))
.info(FileContent::new(
"Custom assets metadata",
custom_assets_metadata,
))
.info(CompileTimeInformation::default());

#[cfg(feature = "paging")]
Expand Down

0 comments on commit a6a2b1d

Please sign in to comment.