aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/share/defaults.d
blob: 2c3a09847a6c59852c407856f81c6b78daeae785 (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;
  @safe 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_();
  }
}