Commit 2d8d734
refactor(cli): property bag for refreshStacks function (#855)
The refreshStacks function currently takes 4 individual parameters,
making it difficult to maintain as new parameters are added.
This change:
- Introduces a `RefreshStacksProps` interface to group function
parameters
- Refactors the `refreshStacks` function signature to accept a single
props object
---
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license
Co-authored-by: Dhyan Gandhi <[email protected]>
Co-authored-by: Kaizen Conroy <[email protected]>1 parent e0ef8d0 commit 2d8d734
File tree
2 files changed
+22
-5
lines changed- packages/@aws-cdk/toolkit-lib/lib/api/garbage-collection
2 files changed
+22
-5
lines changedLines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
223 | 228 | | |
224 | 229 | | |
225 | 230 | | |
| |||
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
101 | 108 | | |
102 | | - | |
| 109 | + | |
103 | 110 | | |
104 | | - | |
| 111 | + | |
105 | 112 | | |
106 | 113 | | |
107 | 114 | | |
| |||
154 | 161 | | |
155 | 162 | | |
156 | 163 | | |
157 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
158 | 170 | | |
159 | 171 | | |
160 | 172 | | |
| |||
0 commit comments