mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 17:00:18 +00:00
Add Asciidoc export option
Signed-off-by: Chloe Kudryavtsev <toast@toastin.space>
This commit is contained in:
1 parent
7e180965ea
commit
e31dc91151
4 files changed
+223
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user