This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changing the parser description for commands that have implicit restore.
- Loading branch information
Showing
9 changed files
with
224 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Copyright (c) .NET Foundation and contributors. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
using System.Collections.Generic; | ||
using System.Linq; | ||
using Microsoft.DotNet.Cli; | ||
using Microsoft.DotNet.Cli.CommandLine; | ||
using Microsoft.DotNet.Tools.MSBuild; | ||
using Microsoft.DotNet.Tools.Restore; | ||
|
||
namespace Microsoft.DotNet.Tools | ||
{ | ||
public static class CreateWithRestoreOptions | ||
{ | ||
public static Command Command( | ||
string name, | ||
string help, | ||
ArgumentsRule arguments, | ||
params Option[] options) | ||
{ | ||
return Create.Command(name, help, arguments, RestoreCommandParser.AddImplicitRestoreOptions(options)); | ||
} | ||
|
||
public static Command Command( | ||
string name, | ||
string help, | ||
ArgumentsRule arguments, | ||
bool treatUnmatchedTokensAsErrors, | ||
params Option[] options) | ||
{ | ||
return Create.Command( | ||
name, | ||
help, | ||
arguments, | ||
treatUnmatchedTokensAsErrors, | ||
RestoreCommandParser.AddImplicitRestoreOptions(options)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.