Commit de2eb70
authored
Unify components and recipes (#227)
This PR consolidates the interfaces for recipes and components by having
both operate directly on manifests rather than returning
services/manifests. This simplifies the architecture and makes the
system more composable.
Previously, recipes and components had different interfaces for
modifying manifests:
- Recipes: Accepted an ExContext and Artifacts, returned a complete
Manifest
- Components: Accepted a Service reference and ExContext, modified the
service in-place
This distinction created unnecessary complexity since both are
fundamentally doing the same thing: configuring and adding services to a
manifest. The only real difference is that recipes are public CLI entry
points while components are internal execution units - but this semantic
difference doesn't justify different technical interfaces.1 parent acfda87 commit de2eb70
File tree
13 files changed
+216
-375
lines changed- .github/workflows
- playground
13 files changed
+216
-375
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | 60 | | |
128 | 61 | | |
129 | 62 | | |
| |||
192 | 125 | | |
193 | 126 | | |
194 | 127 | | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | 128 | | |
200 | 129 | | |
201 | 130 | | |
202 | | - | |
203 | | - | |
204 | 131 | | |
205 | 132 | | |
206 | 133 | | |
| |||
236 | 163 | | |
237 | 164 | | |
238 | 165 | | |
239 | | - | |
240 | | - | |
| 166 | + | |
241 | 167 | | |
| 168 | + | |
242 | 169 | | |
243 | 170 | | |
244 | 171 | | |
245 | 172 | | |
246 | 173 | | |
247 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
248 | 177 | | |
249 | 178 | | |
250 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments