We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pub deps --json
1 parent 279d936 commit f27dcfdCopy full SHA for f27dcfd
lib/src/command/deps.dart
@@ -99,7 +99,12 @@ class DepsCommand extends PubCommand {
99
];
100
final toVisit = [...workspacePackageNames];
101
final packagesJson = <dynamic>[];
102
- final graph = await entrypoint.packageGraph;
+
103
+ // Avoid polluting stdout when outputting json.
104
+ final graph = await log.errorsOnlyUnlessTerminal(
105
+ () async => await entrypoint.packageGraph,
106
+ );
107
108
while (toVisit.isNotEmpty) {
109
final current = toVisit.removeLast();
110
if (visited.contains(current)) continue;
0 commit comments