aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/share
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2018-07-31 10:25:29 -0400
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:15 -0400
commit9f5a72665fd94dcb082a9710c71e6a6a08386450 (patch)
tree7b5fbb382c6382b51cd6035e3f37744cb7eb9688 /src/sdp/share
parentmeson build related (reggae removed for now) (diff)
messages & remove outputs not generated
Diffstat (limited to 'src/sdp/share')
-rw-r--r--src/sdp/share/defaults.d22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/sdp/share/defaults.d b/src/sdp/share/defaults.d
new file mode 100644
index 0000000..ed76846
--- /dev/null
+++ b/src/sdp/share/defaults.d
@@ -0,0 +1,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_();
+ }
+}