From ddf8a89166ab24e031c5fe279b2e6c8cc968c674 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Thu, 15 Nov 2018 13:53:10 -0500 Subject: reporting pod & source processing --- org/output_src_pod.org | 11 ++++++++--- src/doc_reform/output/source_pod.d | 11 ++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/org/output_src_pod.org b/org/output_src_pod.org index c699786..0767cfd 100644 --- a/org/output_src_pod.org +++ b/org/output_src_pod.org @@ -79,6 +79,9 @@ if (!exists(pths_pod.pod_dir_())) { pths_pod.pod_dir_().mkdirRecurse; } if (doc_matters.opt.action.source) { + if (!(doc_matters.opt.action.quiet)) { + writeln(" ", pths_pod.fn_pod_filelist(doc_matters.src.filename).filesystem_open_zpod); + } if (!exists(pths_pod.text_root(doc_matters.src.filename).filesystem_open_zpod)) { pths_pod.text_root(doc_matters.src.filename).filesystem_open_zpod.mkdirRecurse; } @@ -288,10 +291,12 @@ auto fn_pod = pths_pod.pod_filename(doc_matters.src.filename).zpod; #+BEGIN_SRC d if (exists(fn_pod)) { try { - if (doc_matters.opt.action.verbose) { + if (!(doc_matters.opt.action.quiet)) { auto data = (cast(byte[]) (fn_pod).read); - writeln(doc_matters.src.filename, " >> "); - writefln("%-(%02x%) %s", data.sha256Of, fn_pod); + if (doc_matters.opt.action.verbose) { + writeln(" ", doc_matters.src.filename, " > "); + } + writefln(" %s\n %-(%02x%)", fn_pod, data.sha256Of); } debug(pod) { try { diff --git a/src/doc_reform/output/source_pod.d b/src/doc_reform/output/source_pod.d index 4303c32..79cff91 100644 --- a/src/doc_reform/output/source_pod.d +++ b/src/doc_reform/output/source_pod.d @@ -30,6 +30,9 @@ template DocReformPod() { pths_pod.pod_dir_().mkdirRecurse; } if (doc_matters.opt.action.source) { + if (!(doc_matters.opt.action.quiet)) { + writeln(" ", pths_pod.fn_pod_filelist(doc_matters.src.filename).filesystem_open_zpod); + } if (!exists(pths_pod.text_root(doc_matters.src.filename).filesystem_open_zpod)) { pths_pod.text_root(doc_matters.src.filename).filesystem_open_zpod.mkdirRecurse; } @@ -227,10 +230,12 @@ template DocReformPod() { } if (exists(fn_pod)) { try { - if (doc_matters.opt.action.verbose) { + if (!(doc_matters.opt.action.quiet)) { auto data = (cast(byte[]) (fn_pod).read); - writeln(doc_matters.src.filename, " >> "); - writefln("%-(%02x%) %s", data.sha256Of, fn_pod); + if (doc_matters.opt.action.verbose) { + writeln(" ", doc_matters.src.filename, " > "); + } + writefln(" %s\n %-(%02x%)", fn_pod, data.sha256Of); } debug(pod) { try { -- cgit v1.2.3