aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/share/defaults.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2018-09-10 18:15:02 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2019-04-10 15:14:15 -0400
commite95c49b76f4ac7bf72c383ee43a0567dfcbf1603 (patch)
treeb3aec9058f69be0047bb526052f8deefb5d97463 /src/doc_reform/share/defaults.d
parentmaker, subprojects arrange, minor (diff)
0.1.0 renamed doc-reform, doc_reform (& rad)
- from sdp
Diffstat (limited to 'src/doc_reform/share/defaults.d')
-rw-r--r--src/doc_reform/share/defaults.d22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/doc_reform/share/defaults.d b/src/doc_reform/share/defaults.d
new file mode 100644
index 0000000..ee0dbcb
--- /dev/null
+++ b/src/doc_reform/share/defaults.d
@@ -0,0 +1,22 @@
+/++
+ shared default settings
++/
+module doc_reform.share.defaults;
+template Msg() {
+ import std.stdio;
+ auto Msg(I)(I doc_matters) {
+ struct Msg_ {
+ void v()(string message) {
+ if (!(doc_matters.opt.action.quiet) && doc_matters.opt.action.verbose) {
+ writeln(message);
+ }
+ }
+ void vv()(string message) {
+ if (!(doc_matters.opt.action.quiet) && doc_matters.opt.action.very_verbose) {
+ writeln(message);
+ }
+ }
+ }
+ return Msg_();
+ }
+}