move parse result validation to CommandBase to allow custom messages
This commit is contained in:
parent
e0ca794ed5
commit
43c13f2f53
16 changed files with 75 additions and 31 deletions
|
@ -17,7 +17,10 @@ namespace Microsoft.DotNet.Tools.Sln.Add
|
|||
private readonly AppliedOption _appliedCommand;
|
||||
private readonly string _fileOrDirectory;
|
||||
|
||||
public AddProjectToSolutionCommand(AppliedOption appliedCommand, string fileOrDirectory)
|
||||
public AddProjectToSolutionCommand(
|
||||
AppliedOption appliedCommand,
|
||||
string fileOrDirectory,
|
||||
ParseResult parseResult) : base(parseResult)
|
||||
{
|
||||
if (appliedCommand == null)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue