aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/doc_reform.d
diff options
context:
space:
mode:
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
);