aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/share/defaults.d
blob: ed768466a97c94ae1e62c08e02a5ef30285dc9a0 (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 sdp.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_();
  }
}