Add Asciidoc export option

Signed-off-by: Chloe Kudryavtsev <toast@toastin.space>
This commit is contained in:
Chloe Kudryavtsev authored and David Peter committed 2019-01-30 21:27:25 +01:00
1 parent 7e180965ea
commit e31dc91151
4 files changed
+223

No files matched your search

+3
View File
@@ -216,6 +216,9 @@ fn build_hyperfine_options(matches: &ArgMatches) -> Result<HyperfineOptions, Opt
/// in the given ArgMatches
fn build_export_manager(matches: &ArgMatches) -> ExportManager {
let mut export_manager = ExportManager::new();
if let Some(filename) = matches.value_of("export-asciidoc") {
export_manager.add_exporter(ExportType::Asciidoc, filename);
}
if let Some(filename) = matches.value_of("export-json") {
export_manager.add_exporter(ExportType::Json, filename);
}