Skip to content

Commit e67eaa3

Browse files
committed
cleanup
1 parent 3aefb60 commit e67eaa3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Cli/dotnet/Commands/Package/List/PackageListCommand.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,16 @@ public override int Execute()
4949

5050
private int RunRestore(string projectOrSolution, ReportOutputFormat formatOption, bool interactive)
5151
{
52-
List<string> args;
52+
List<string> args = ["-target:Restore", projectOrSolution];
5353

5454
if (formatOption == ReportOutputFormat.json)
5555
{
56-
args = ["-target:restore", projectOrSolution, "-noConsoleLogger"];
56+
args.Add("-noConsoleLogger");
5757
}
5858
else
5959
{
60-
args = ["-target:restore", projectOrSolution, "--consoleLoggerParameters:Verbosity=Minimal;NoSummary"];
60+
args.Add("-consoleLoggerParameters:NoSummary");
61+
args.Add("-verbosity:minimal");
6162
}
6263

6364
if (interactive)

0 commit comments

Comments
 (0)