summaryrefslogtreecommitdiffstats
path: root/src/bug_report.rs
blob: f0607d759eb8841b2195bb5620fa6fff2b3c8ae1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use bugreport::{
	bugreport,
	collector::{
		CommandLine, CompileTimeInformation, EnvironmentVariables,
		OperatingSystem, SoftwareVersion,
	},
	format::Markdown,
};

pub fn generate_bugreport() {
	bugreport!()
		.info(SoftwareVersion::default())
		.info(OperatingSystem::default())
		.info(CompileTimeInformation::default())
		.info(EnvironmentVariables::list(&[
			"SHELL",
			"EDITOR",
			"GIT_EDITOR",
			"VISUAL",
		]))
		.info(CommandLine::default())
		.print::<Markdown>();
}