summaryrefslogtreecommitdiff
path: root/magefile.go
diff options
context:
space:
mode:
Diffstat (limited to 'magefile.go')
-rw-r--r--magefile.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/magefile.go b/magefile.go
index ec6dac1..fba423f 100644
--- a/magefile.go
+++ b/magefile.go
@@ -85,3 +85,12 @@ func Test(ctx context.Context) error {
})
return sh.RunV("go", "test", "-shuffle=on", "-v", "./...")
}
+
+func Graphviz() error {
+ return sh.RunV("dot", "-Tpng", "-O", "doc/share/authz/sns.dot")
+}
+
+// Generate documentation
+func Docs(ctx context.Context) {
+ mg.CtxDeps(ctx, Graphviz)
+}