Skip to content

Commit f2520e8

Browse files
committed
Use Microsoft.Extensions.CommandLineUtils and Microsoft.Extensions.Tools.Internal in service ref programs
- add '--quiet' option - add '--debug' option (when building Debug configuration) - support `--` in `dotnet-getdocument`; users may want to explictly add options for GetDocument.Insider - remove '--no-color' option - use `IReporter` extension methods instead of static `Reporter` class - reduce `static` use to ease testing (coming soon) and share the `IConsole` and `IReporter` - add `ProgramBase` - allow mix of known and unknown command-line arguments - maintain existing behaviour using switch added in dotnet/extensions#2210 nits: - add a couple more `CommandLineApplicationExtensions` methods - take VS suggestions
1 parent c21a92c commit f2520e8

31 files changed

+327
-1288
lines changed

src/Tools/Extensions.ApiDescription.Server/src/build/Microsoft.Extensions.ApiDescription.Server.props

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
<?xml version="1.0" encoding="utf-8" standalone="no"?>
1+
<?xml version="1.0" encoding="utf-8" standalone="no"?>
22
<Project>
33
<!--
44
Settings users may update as they see fit.
55
-->
66
<PropertyGroup>
77
<!--
8-
Options added to the OpenAPI document generation tool ('dotnet-getdocument') command line. Available options
9-
control console output: 'no-color', 'prefix-output' and 'verbose'. All require a double-dash prefix.
8+
Options added to the OpenAPI document generation tool ('dotnet-getdocument') command line. For example, the
9+
'prefix-output', 'quiet' and 'verbose' options control console output and the 'help' and 'version' options show
10+
information. Long form options require a double-dash prefix.
1011
-->
1112
<OpenApiGenerateDocumentsOptions Condition=" '$(OpenApiGenerateDocumentsOptions)' == '' " />
1213

src/Tools/GetDocumentInsider/src/AnsiConsole.cs

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/Tools/GetDocumentInsider/src/AnsiConstants.cs

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/Tools/GetDocumentInsider/src/AnsiTextWriter.cs

Lines changed: 0 additions & 131 deletions
This file was deleted.

src/Tools/GetDocumentInsider/src/CommandLineUtils/CommandArgument.cs

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)