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.d68
1 files changed, 42 insertions, 26 deletions
diff --git a/src/doc_reform/doc_reform.d b/src/doc_reform/doc_reform.d
index 4a0a9b5..1d39909 100755
--- a/src/doc_reform/doc_reform.d
+++ b/src/doc_reform/doc_reform.d
@@ -448,11 +448,15 @@ void main(string[] args) {
}
}
if (!(_opt_action.skip_output)) {
- debug(steps) {
+ if ((_opt_action.debug_do)
+ || (_opt_action.very_verbose)
+ ) {
writeln("step0 commence → (without processing files)");
}
outputHubOp!()(_env, _opt_action);
- debug(steps) {
+ if ((_opt_action.debug_do)
+ || (_opt_action.very_verbose)
+ ) {
writeln("- step0 complete");
}
}
@@ -464,9 +468,8 @@ void main(string[] args) {
scope(success) {
if (!(_opt_action.quiet)) {
writefln(
- "%s\n%s",
- "~ document complete, ok ~",
- "------------------------------------------------------------------",
+ "%s",
+ "-- ~ document complete, ok ~ ------------------------------------",
);
}
}
@@ -485,7 +488,9 @@ void main(string[] args) {
"not a sisu markup filename: «" ~
manifest.src.filename ~ "»"
);
- debug(steps) {
+ if ((_opt_action.debug_do)
+ || (_opt_action.very_verbose)
+ ) {
writeln("--->\nstepX commence → (document abstraction)");
}
auto t = DocReformAbstraction!()(_env, _opt_action, manifest);
@@ -493,7 +498,9 @@ void main(string[] args) {
static assert(t.length==2);
auto doc_abstraction = t[dAM.abstraction];
auto doc_matters = t[dAM.matters];
- debug(steps) {
+ if ((doc_matters.opt.action.debug_do)
+ || (doc_matters.opt.action.very_verbose)
+ ) {
writeln("- stepX complete");
}
/+ ↓ debugs +/
@@ -501,26 +508,29 @@ void main(string[] args) {
DocReformAbstractionSummary!()(doc_abstraction, doc_matters);
}
/+ ↓ debugs +/
- if ((doc_matters.opt.action.debug_do)
- || (doc_matters.opt.action.verbose)
- ) {
+ if (doc_matters.opt.action.debug_do) {
DocReformDebugs!()(doc_abstraction, doc_matters);
}
/+ ↓ output hub +/
if (!(doc_matters.opt.action.skip_output)) {
- debug(steps) {
+ if ((_opt_action.debug_do)
+ || (_opt_action.very_verbose)
+ ) {
writeln("step5 commence → (process outputs)");
}
outputHub!()(doc_abstraction, doc_matters);
- debug(steps) {
+ if ((_opt_action.debug_do)
+ || (_opt_action.very_verbose)
+ ) {
writeln("- step5 complete");
}
}
scope(exit) {
if (!(_opt_action.quiet)) {
writefln(
- "processed file: %s",
- manifest.src.filename
+ "processed file: %s (%s)",
+ manifest.src.filename,
+ manifest.src.language
);
}
destroy(manifest);
@@ -538,9 +548,8 @@ void main(string[] args) {
scope(success) {
if (!(_opt_action.quiet)) {
writefln(
- "%s\n%s",
- "~ document complete, ok ~",
- "------------------------------------------------------------------",
+ "%s",
+ "-- ~ document complete, ok ~ ------------------------------------",
);
}
}
@@ -559,7 +568,9 @@ void main(string[] args) {
"not a sisu markup filename: «" ~
manifest.src.filename ~ "»"
);
- debug(steps) {
+ if ((_opt_action.debug_do)
+ || (_opt_action.very_verbose)
+ ) {
writeln("--->\nstepX commence → (document abstraction)");
}
auto t = DocReformAbstraction!()(_env, _opt_action, manifest);
@@ -567,7 +578,9 @@ void main(string[] args) {
static assert(t.length==2);
auto doc_abstraction = t[dAM.abstraction];
auto doc_matters = t[dAM.matters];
- debug(steps) {
+ if ((doc_matters.opt.action.debug_do)
+ || (doc_matters.opt.action.very_verbose)
+ ) {
writeln("- stepX complete");
}
/+ ↓ debugs +/
@@ -575,26 +588,29 @@ void main(string[] args) {
DocReformAbstractionSummary!()(doc_abstraction, doc_matters);
}
/+ ↓ debugs +/
- if ((doc_matters.opt.action.debug_do)
- || (doc_matters.opt.action.verbose)
- ) {
+ if (doc_matters.opt.action.debug_do) {
DocReformDebugs!()(doc_abstraction, doc_matters);
}
/+ ↓ output hub +/
if (!(doc_matters.opt.action.skip_output)) {
- debug(steps) {
+ if ((_opt_action.debug_do)
+ || (_opt_action.very_verbose)
+ ) {
writeln("step5 commence → (process outputs)");
}
outputHub!()(doc_abstraction, doc_matters);
- debug(steps) {
+ if ((_opt_action.debug_do)
+ || (_opt_action.very_verbose)
+ ) {
writeln("- step5 complete");
}
}
scope(exit) {
if (!(_opt_action.quiet)) {
writefln(
- "processed file: %s",
- manifest.src.filename
+ "processed file: %s (%s)",
+ manifest.src.filename,
+ manifest.src.language
);
}
destroy(manifest);