You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: alpha/declcfg/write.go
+81Lines changed: 81 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,94 @@ package declcfg
3
3
import (
4
4
"bytes"
5
5
"encoding/json"
6
+
"fmt"
6
7
"io"
7
8
"sort"
9
+
"strings"
8
10
9
11
"k8s.io/apimachinery/pkg/util/sets"
10
12
"sigs.k8s.io/yaml"
11
13
)
12
14
15
+
// writes out the channel edges of the declarative config graph in a mermaid format capable of being pasted into
16
+
// mermaid renderers like github, mermaid.live, etc.
17
+
// output is sorted lexicographically by package name, and then by channel name
18
+
//
19
+
// NB: Output has wrapper comments stating the skipRange edge caveat in HTML comment format, which cannot be parsed by mermaid renderers.
20
+
// This is deliberate, and intended as an explicit acknowledgement of the limitations, instead of requiring the user to notice the missing edges upon inspection.
21
+
//
22
+
// Example output:
23
+
// <!-- PLEASE NOTE: skipRange edges are not currently displayed -->
0 commit comments