Commit 06fcc03
authored
adds traits to dependency output in show-dependencies --json and --text (swiftlang#9034)
Adds traits to the output of the show-dependencies command for `--text`
and `--json` output.
### Motivation:
Exposes the default traits, if any, that are enabled by the dependencies
a package.
Resolves: swiftlang#9033
### Modifications:
Extended the logic in show-dependencies to add in the `enabledTraits`
for a resolved package.
### Result:
The output of show-dependencies includes output akin to `(traits:
FirstTrait, SecondTrait)` is the resolved package has traits and
includes the traits that it has. If the package doesn't offer traits, no
additional/new content is displayed in `--text`.
The JSON provided from `show-dependencies --json` includes a `traits`
property, empty if there aren't any traits enabled.1 parent 7a90723 commit 06fcc03
File tree
2 files changed
+58
-1
lines changed- Sources/Commands/Utilities
- Tests/CommandsTests
2 files changed
+58
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
38 | 45 | | |
39 | 46 | | |
40 | 47 | | |
| |||
130 | 137 | | |
131 | 138 | | |
132 | 139 | | |
| 140 | + | |
133 | 141 | | |
134 | 142 | | |
135 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1315 | 1315 | | |
1316 | 1316 | | |
1317 | 1317 | | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
1318 | 1367 | | |
1319 | 1368 | | |
1320 | 1369 | | |
| |||
0 commit comments