bat: disable the need of the bugreport lib
Sylvestre Ledru
2 years ago
0 | Index: bat/Cargo.toml | |
1 | =================================================================== | |
2 | --- bat.orig/Cargo.toml | |
3 | +++ bat/Cargo.toml | |
4 | @@ -35,8 +35,8 @@ version = "^0.12.1" | |
5 | version = "0.2.14" | |
6 | optional = true | |
7 | ||
8 | -[dependencies.bugreport] | |
9 | -version = "0.4" | |
10 | +#[dependencies.bugreport] | |
11 | +#version = "0.4" | |
12 | ||
13 | [dependencies.clap] | |
14 | version = "2.33" | |
15 | Index: bat/src/bin/bat/main.rs | |
16 | =================================================================== | |
17 | --- bat.orig/src/bin/bat/main.rs | |
18 | +++ bat/src/bin/bat/main.rs | |
19 | @@ -226,7 +226,7 @@ fn run_controller(inputs: Vec<Input>, co | |
20 | fn run() -> Result<bool> { | |
21 | let app = App::new()?; | |
22 | ||
23 | - if app.matches.is_present("diagnostic") { | |
24 | +/* if app.matches.is_present("diagnostic") { | |
25 | use bugreport::{bugreport, collector::*, format::Markdown}; | |
26 | let pager = bat::config::get_pager_executable(app.matches.value_of("pager")) | |
27 | .unwrap_or_else(|| "less".to_owned()); // FIXME: Avoid non-canonical path to "less". | |
28 | @@ -268,7 +268,7 @@ fn run() -> Result<bool> { | |
29 | report.print::<Markdown>(); | |
30 | ||
31 | return Ok(true); | |
32 | - } | |
33 | + }*/ | |
34 | ||
35 | match app.matches.subcommand() { | |
36 | ("cache", Some(cache_matches)) => { |