aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/share/defaults.d
blob: ee0dbcbb5aec193bfacac139e8d5da91f22aaa29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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_();
  }
}