Add verbosity option to install tool
command.
This commit adds the `--verbosity` option to the `install tool` command. MSBuild/NuGet output is now controllable by the user and defaults to being "quiet". This enables users to see warnings from NuGet that otherwise would be swallowed unless NuGet returned a non-zero exit code. As a byproduct of this change, the exception handling and error messages related to obtaining tool packages was retooled. We no longer display `install tool` command line help for installation failures, as it should only be displayed for command line syntax errors. Fixes #8465.
This commit is contained in:
parent
085452eaae
commit
7ebfdde749
50 changed files with 1068 additions and 1103 deletions
|
@ -0,0 +1,26 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.DotNet.Cli.Utils;
|
||||
|
||||
namespace Microsoft.DotNet.Tools.Test.Utilities
|
||||
{
|
||||
public class BufferedReporter : IReporter
|
||||
{
|
||||
public List<string> Lines { get; private set; } = new List<string>();
|
||||
|
||||
public void WriteLine(string message)
|
||||
{
|
||||
Lines.Add(message);
|
||||
}
|
||||
|
||||
public void WriteLine()
|
||||
{
|
||||
Lines.Add("");
|
||||
}
|
||||
|
||||
public void Write(string message)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue