aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/doc_reform.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2019-10-04 21:42:07 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2019-10-17 19:07:20 -0400
commitb70dfcf862ef81795210d6ceafc6ba9082199bf9 (patch)
treea04a2a4f9b517d02082eee336093ebbe404f5edd /src/doc_reform/doc_reform.d
parentpath related, mostly cosmetic code (diff)
--show-{config,make,metadata,summary}doc-reform_v0.8.0
Diffstat (limited to 'src/doc_reform/doc_reform.d')
-rwxr-xr-xsrc/doc_reform/doc_reform.d59
1 files changed, 55 insertions, 4 deletions
diff --git a/src/doc_reform/doc_reform.d b/src/doc_reform/doc_reform.d
index 9c41895..2e388d1 100755
--- a/src/doc_reform/doc_reform.d
+++ b/src/doc_reform/doc_reform.d
@@ -141,6 +141,9 @@ void main(string[] args) {
"pod" : false,
"serial" : false,
"show-summary" : false,
+ "show-metadata" : false,
+ "show-make" : false,
+ "show-config" : false,
"source" : false,
"sqlite-discrete" : false,
"sqlite-db-create" : false,
@@ -201,6 +204,9 @@ void main(string[] args) {
"pod", "--pod doc reform pod source content bundled", &opts["pod"],
"serial", "--serial serial processing", &opts["serial"],
"show-summary", "--show-summary", &opts["show-summary"],
+ "show-make", "--show-make", &opts["show-make"],
+ "show-metadata", "--show-metadata", &opts["show-metadata"],
+ "show-config", "--show-config", &opts["show-config"],
"source", "--source markup source text content", &opts["source"],
"sqlite-discrete", "--sqlite process discrete sqlite output", &opts["sqlite-discrete"],
"sqlite-db-create", "--sqlite-db-create create db, create tables", &opts["sqlite-db-create"],
@@ -341,6 +347,15 @@ void main(string[] args) {
bool show_summary() {
return opts["show-summary"];
}
+ bool show_make() {
+ return opts["show-make"];
+ }
+ bool show_metadata() {
+ return opts["show-metadata"];
+ }
+ bool show_config() {
+ return opts["show-config"];
+ }
bool source() {
return opts["source"];
}
@@ -694,9 +709,27 @@ void main(string[] args) {
if (doc_matters.opt.action.verbose
|| doc_matters.opt.action.show_summary
) {
- import doc_reform.meta.metadoc_summary;
+ import doc_reform.meta.metadoc_show_summary;
DocReformMetaDocSummary!()(doc_abstraction, doc_matters);
}
+ /+ ↓ debugs +/
+ if (doc_matters.opt.action.show_metadata
+ ) {
+ import doc_reform.meta.metadoc_show_metadata;
+ DocReformShowMetaData!()(doc_matters);
+ }
+ /+ ↓ debugs +/
+ if (doc_matters.opt.action.show_make
+ ) {
+ import doc_reform.meta.metadoc_show_make;
+ DocReformShowMake!()(doc_matters);
+ }
+ /+ ↓ debugs +/
+ if (doc_matters.opt.action.show_config
+ ) {
+ import doc_reform.meta.metadoc_show_config;
+ DocReformShowConfig!()(doc_matters);
+ }
if (doc_matters.opt.action.harvest) {
hvst.harvests ~= DocReformMetaDocHarvest!()(doc_matters, hvst);
}
@@ -721,7 +754,7 @@ void main(string[] args) {
scope(exit) {
if (!(_opt_action.quiet)) {
writefln(
- "processed file: %s (%s)",
+ "processed file: %s [%s]",
manifest.src.filename,
manifest.src.language
);
@@ -780,9 +813,27 @@ void main(string[] args) {
if (doc_matters.opt.action.verbose
|| doc_matters.opt.action.show_summary
) {
- import doc_reform.meta.metadoc_summary;
+ import doc_reform.meta.metadoc_show_summary;
DocReformMetaDocSummary!()(doc_abstraction, doc_matters);
}
+ /+ ↓ debugs +/
+ if (doc_matters.opt.action.show_metadata
+ ) {
+ import doc_reform.meta.metadoc_show_metadata;
+ DocReformShowMetaData!()(doc_matters);
+ }
+ /+ ↓ debugs +/
+ if (doc_matters.opt.action.show_make
+ ) {
+ import doc_reform.meta.metadoc_show_make;
+ DocReformShowMake!()(doc_matters);
+ }
+ /+ ↓ debugs +/
+ if (doc_matters.opt.action.show_config
+ ) {
+ import doc_reform.meta.metadoc_show_config;
+ DocReformShowConfig!()(doc_matters);
+ }
if (doc_matters.opt.action.harvest) {
hvst.harvests ~= DocReformMetaDocHarvest!()(doc_matters, hvst);
}
@@ -807,7 +858,7 @@ void main(string[] args) {
scope(exit) {
if (!(_opt_action.quiet)) {
writefln(
- "processed file: %s (%s)",
+ "processed file: %s [%s]",
manifest.src.filename,
manifest.src.language
);