mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-22 04:48:48 +00:00
Update to bugreport 0.3.0
This commit is contained in:
parent
60406c7c2d
commit
6a52f69b58
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -196,7 +196,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bugreport"
|
name = "bugreport"
|
||||||
version = "0.1.0"
|
version = "0.3.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "116762017f173ea5d8103e75533f6bdb62cb6f2257c9c95672beb085a70daed8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"snailquote",
|
"snailquote",
|
||||||
"sys-info",
|
"sys-info",
|
||||||
|
@ -51,7 +51,7 @@ serde_yaml = "0.8"
|
|||||||
semver = "0.11"
|
semver = "0.11"
|
||||||
path_abs = { version = "0.5", default-features = false }
|
path_abs = { version = "0.5", default-features = false }
|
||||||
clircle = "0.2.0"
|
clircle = "0.2.0"
|
||||||
bugreport = "0.2.1"
|
bugreport = "0.3"
|
||||||
|
|
||||||
[dependencies.git2]
|
[dependencies.git2]
|
||||||
version = "0.13"
|
version = "0.13"
|
||||||
|
@ -228,7 +228,7 @@ fn run() -> Result<bool> {
|
|||||||
let app = App::new()?;
|
let app = App::new()?;
|
||||||
|
|
||||||
if app.matches.is_present("diagnostic") {
|
if app.matches.is_present("diagnostic") {
|
||||||
use bugreport::{bugreport, collectors::*};
|
use bugreport::{bugreport, collector::*, format::Markdown};
|
||||||
|
|
||||||
bugreport!()
|
bugreport!()
|
||||||
.info(SoftwareVersion::default())
|
.info(SoftwareVersion::default())
|
||||||
@ -252,7 +252,7 @@ fn run() -> Result<bool> {
|
|||||||
.info(FileContent::new("Config file", config_file()))
|
.info(FileContent::new("Config file", config_file()))
|
||||||
.info(CompileTimeInformation::default())
|
.info(CompileTimeInformation::default())
|
||||||
.info(CommandOutput::new("Less version", "less", &["--version"]))
|
.info(CommandOutput::new("Less version", "less", &["--version"]))
|
||||||
.print_markdown();
|
.print::<Markdown>();
|
||||||
|
|
||||||
return Ok(true);
|
return Ok(true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user