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: internal/projectconfig/component.go
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -68,10 +68,19 @@ type SourceFileReference struct {
68
68
// say in a command line interface. Note that a component group does not uniquely "own" its components; a
69
69
// component may belong to multiple groups, and components need not belong to any group.
70
70
typeComponentGroupConfigstruct {
71
+
// A human-friendly description of this component group.
72
+
Descriptionstring`toml:"description,omitempty" json:"description,omitempty" jsonschema:"title=Description,description=Description of this component group"`
73
+
74
+
// List of explicitly included components, identified by name.
75
+
Components []string`toml:"components,omitempty" json:"components,omitempty" jsonschema:"title=Components,description=List of component names that are members of this group"`
76
+
71
77
// List of glob patterns specifying raw spec files that define components.
72
78
SpecPathPatterns []string`toml:"specs,omitempty" json:"specs,omitempty" validate:"dive,required" jsonschema:"title=Spec path patterns,description=List of glob patterns identifying local specs for components in this group,example=SPECS/**/.spec"`
73
79
// List of glob patterns specifying files to specifically ignore from spec selection.
74
80
ExcludedPathPatterns []string`toml:"excluded-paths,omitempty" json:"excludedPaths,omitempty" jsonschema:"title=Excluded path patterns,description=List of glob patterns identifying local paths to exclude from spec selection,example=build/**"`
81
+
82
+
// Default configuration to apply to component members of this group.
83
+
DefaultComponentConfigComponentConfig`toml:"default-component-config,omitempty" json:"defaultComponentConfig,omitempty" jsonschema:"title=Default component configuration,description=Default component config inherited by all members of this component group"`
75
84
}
76
85
77
86
// Returns a copy of the component group config with relative file paths converted to absolute
0 commit comments