Add markdown support.

Don't create Strings to convert to bytes later, just serialize directly
to bytes in the first place
This commit is contained in:
Steve Pentland authored and David Peter committed 2018-03-20 23:19:06 +01:00
1 parent df1500dc60
commit 8b933dc64d
5 files changed
+67 -25

No files matched your search

+10
View File
@@ -152,6 +152,13 @@ fn main() {
.value_name("FILE")
.help("Export the timing results as JSON to the given FILE."),
)
.arg(
Arg::with_name("export-md")
.long("export-md")
.takes_value(true)
.value_name("FILE")
.help("Export the timing results to a markdown table in the given file"),
)
.help_message("Print this help message.")
.version_message("Show version information.")
.get_matches();
@@ -188,6 +195,9 @@ fn main() {
if let Some(filename) = matches.value_of("export-csv") {
export_manager.add_exporter(ExportType::Csv, filename);
}
if let Some(filename) = matches.value_of("export-md") {
export_manager.add_exporter(ExportType::Markdown, filename);
}
// We default Windows to NoColor if full had been specified.
if cfg!(windows) && options.output_style == OutputStyleOption::Full {