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: cmd/goplantuml/main.go
+9-6
Original file line number
Diff line number
Diff line change
@@ -47,14 +47,15 @@ func main() {
47
47
notes:=flag.String("notes", "", "Comma separated list of notes to be added to the diagram")
48
48
output:=flag.String("output", "", "output file path. If omitted, then this will default to standard output")
49
49
showOptionsAsNote:=flag.Bool("show-options-as-note", false, "Show a note in the diagram with the none evident options ran with this CLI")
50
-
50
+
aggregatePrivateMembers:=flag.Bool("aggregate-private-members", false, "Show aggregations for private members. Ignored if -show-aggregations is not used.")
Copy file name to clipboardexpand all lines: parser/class_parser.go
+39-18
Original file line number
Diff line number
Diff line change
@@ -60,15 +60,16 @@ type ClassDiagramOptions struct {
60
60
61
61
//RenderingOptions will allow the class parser to optionally enebale or disable the things to render.
62
62
typeRenderingOptionsstruct {
63
-
Titlestring
64
-
Notesstring
65
-
Aggregationsbool
66
-
Fieldsbool
67
-
Methodsbool
68
-
Compositionsbool
69
-
Implementationsbool
70
-
Aliasesbool
71
-
ConnectionLabelsbool
63
+
Titlestring
64
+
Notesstring
65
+
Aggregationsbool
66
+
Fieldsbool
67
+
Methodsbool
68
+
Compositionsbool
69
+
Implementationsbool
70
+
Aliasesbool
71
+
ConnectionLabelsbool
72
+
AggregatePrivateMembersbool
72
73
}
73
74
74
75
constaliasComplexNameComment="'This class was created so that we can correctly have an alias pointing to this name. Since it contains dots that can break namespaces"
@@ -100,6 +101,9 @@ const RenderTitle = 7
100
101
//RenderNotes contains a list of notes to be rendered in the class diagram
101
102
constRenderNotes=8
102
103
104
+
//AggregatePrivateMembers is to be used in the SetRenderingOptions argument as the key to the map, when value is true, it will connect aggregations with private members
105
+
constAggregatePrivateMembers=9
106
+
103
107
//RenderingOption is an alias for an it so it is easier to use it as options in a map (see SetRenderingOptions(map[RenderingOption]bool) error)
0 commit comments