Commit 3aa60cb

mo khan <mo@mokhan.ca>
2025-03-27 19:49:59
chore: extract list of files to convert via dot
1 parent ce31ca6
Changed files (1)
magefile.go
@@ -87,7 +87,16 @@ func Test(ctx context.Context) error {
 }
 
 func Graphviz() error {
-	return sh.RunV("dot", "-Tpng", "-O", "doc/share/authz/sns.dot")
+	files := []string{
+		"doc/share/authz/sns.dot",
+	}
+	for _, file := range files {
+		if err := sh.RunV("dot", "-Tpng", "-O", file); err != nil {
+			return err
+		}
+	}
+
+	return nil
 }
 
 // Generate documentation