实例介绍
这个仓库包含了System.CommandLine库和dotnet-suggest全局工具的代码。
Package | Version | Description |
---|---|---|
System.CommandLine | 命令行解析器、模型绑定、调用、shell自动补全 | |
System.CommandLine.DragonFruit | 使用强类型的Main方法按约定构建命令行应用程序 | |
System.CommandLine.Hosting | 支持将System.CommandLine与Microsoft.Extensions.Hosting一起使用 | |
dotnet-suggest | 为使用System.CommandLine构建的应用程序提供shell自动补全的命令行工具 |
【实例截图】
【核心代码】
文件清单
└── command-line-api-963d34b1fb712c673bfb198133d7e988182c9ef4
├── build.cmd
├── build.sh
├── CODE-OF-CONDUCT.md
├── CONTRIBUTING.md
├── Directory.Build.props
├── Directory.Build.rsp
├── Directory.Build.targets
├── Directory.Packages.props
├── docs
│ ├── dotnet-suggest.md
│ ├── DragonFruit-overview.md
│ ├── Functional-goals.md
│ ├── History.md
│ ├── model-binding.md
│ ├── readme.md
│ ├── Technical-motivations.md
│ └── Your-first-app-with-System-CommandLine-DragonFruit.md
├── eng
│ ├── common
│ │ ├── BuildConfiguration
│ │ │ └── build-configuration.json
│ │ ├── build.ps1
│ │ ├── build.sh
│ │ ├── CIBuild.cmd
│ │ ├── cibuild.sh
│ │ ├── cross
│ │ │ ├── arm
│ │ │ │ ├── sources.list.bionic
│ │ │ │ ├── sources.list.focal
│ │ │ │ ├── sources.list.jammy
│ │ │ │ ├── sources.list.jessie
│ │ │ │ ├── sources.list.xenial
│ │ │ │ ├── sources.list.zesty
│ │ │ │ └── tizen
│ │ │ │ └── tizen.patch
│ │ │ ├── arm64
│ │ │ │ ├── sources.list.bionic
│ │ │ │ ├── sources.list.buster
│ │ │ │ ├── sources.list.focal
│ │ │ │ ├── sources.list.jammy
│ │ │ │ ├── sources.list.stretch
│ │ │ │ ├── sources.list.xenial
│ │ │ │ ├── sources.list.zesty
│ │ │ │ └── tizen
│ │ │ │ └── tizen.patch
│ │ │ ├── armel
│ │ │ │ ├── armel.jessie.patch
│ │ │ │ ├── sources.list.jessie
│ │ │ │ └── tizen
│ │ │ │ └── tizen.patch
│ │ │ ├── armv6
│ │ │ │ └── sources.list.buster
│ │ │ ├── build-android-rootfs.sh
│ │ │ ├── build-rootfs.sh
│ │ │ ├── ppc64le
│ │ │ │ └── sources.list.bionic
│ │ │ ├── riscv64
│ │ │ │ └── sources.list.sid
│ │ │ ├── s390x
│ │ │ │ └── sources.list.bionic
│ │ │ ├── tizen-build-rootfs.sh
│ │ │ ├── tizen-fetch.sh
│ │ │ ├── toolchain.cmake
│ │ │ └── x86
│ │ │ ├── sources.list.bionic
│ │ │ ├── sources.list.focal
│ │ │ ├── sources.list.jammy
│ │ │ ├── sources.list.xenial
│ │ │ └── tizen
│ │ │ └── tizen.patch
│ │ ├── darc-init.ps1
│ │ ├── darc-init.sh
│ │ ├── dotnet-install.cmd
│ │ ├── dotnet-install.ps1
│ │ ├── dotnet-install.sh
│ │ ├── enable-cross-org-publishing.ps1
│ │ ├── generate-locproject.ps1
│ │ ├── generate-sbom-prep.ps1
│ │ ├── generate-sbom-prep.sh
│ │ ├── helixpublish.proj
│ │ ├── init-tools-native.cmd
│ │ ├── init-tools-native.ps1
│ │ ├── init-tools-native.sh
│ │ ├── internal
│ │ │ ├── Directory.Build.props
│ │ │ ├── NuGet.config
│ │ │ └── Tools.csproj
│ │ ├── internal-feed-operations.ps1
│ │ ├── internal-feed-operations.sh
│ │ ├── loc
│ │ │ └── P22DotNetHtmlLocalization.lss
│ │ ├── msbuild.ps1
│ │ ├── msbuild.sh
│ │ ├── native
│ │ │ ├── CommonLibrary.psm1
│ │ │ ├── common-library.sh
│ │ │ ├── init-compiler.sh
│ │ │ ├── init-distro-rid.sh
│ │ │ ├── init-os-and-arch.sh
│ │ │ ├── install-cmake.sh
│ │ │ ├── install-cmake-test.sh
│ │ │ └── install-tool.ps1
│ │ ├── pipeline-logging-functions.ps1
│ │ ├── pipeline-logging-functions.sh
│ │ ├── post-build
│ │ │ ├── add-build-to-channel.ps1
│ │ │ ├── check-channel-consistency.ps1
│ │ │ ├── nuget-validation.ps1
│ │ │ ├── post-build-utils.ps1
│ │ │ ├── publish-using-darc.ps1
│ │ │ ├── sourcelink-validation.ps1
│ │ │ ├── symbols-validation.ps1
│ │ │ └── trigger-subscriptions.ps1
│ │ ├── PSScriptAnalyzerSettings.psd1
│ │ ├── README.md
│ │ ├── retain-build.ps1
│ │ ├── sdk-task.ps1
│ │ ├── sdl
│ │ │ ├── configure-sdl-tool.ps1
│ │ │ ├── execute-all-sdl-tools.ps1
│ │ │ ├── extract-artifact-archives.ps1
│ │ │ ├── extract-artifact-packages.ps1
│ │ │ ├── init-sdl.ps1
│ │ │ ├── NuGet.config
│ │ │ ├── packages.config
│ │ │ ├── run-sdl.ps1
│ │ │ ├── sdl.ps1
│ │ │ └── trim-assets-version.ps1
│ │ ├── SetupNugetSources.ps1
│ │ ├── SetupNugetSources.sh
│ │ ├── templates
│ │ │ ├── job
│ │ │ │ ├── execute-sdl.yml
│ │ │ │ ├── job.yml
│ │ │ │ ├── onelocbuild.yml
│ │ │ │ ├── publish-build-assets.yml
│ │ │ │ ├── source-build.yml
│ │ │ │ └── source-index-stage1.yml
│ │ │ ├── jobs
│ │ │ │ ├── codeql-build.yml
│ │ │ │ ├── jobs.yml
│ │ │ │ └── source-build.yml
│ │ │ ├── post-build
│ │ │ │ ├── common-variables.yml
│ │ │ │ ├── post-build.yml
│ │ │ │ ├── setup-maestro-vars.yml
│ │ │ │ └── trigger-subscription.yml
│ │ │ ├── steps
│ │ │ │ ├── add-build-to-channel.yml
│ │ │ │ ├── build-reason.yml
│ │ │ │ ├── component-governance.yml
│ │ │ │ ├── execute-codeql.yml
│ │ │ │ ├── execute-sdl.yml
│ │ │ │ ├── generate-sbom.yml
│ │ │ │ ├── publish-logs.yml
│ │ │ │ ├── retain-build.yml
│ │ │ │ ├── run-on-unix.yml
│ │ │ │ ├── run-on-windows.yml
│ │ │ │ ├── run-script-ifequalelse.yml
│ │ │ │ ├── send-to-helix.yml
│ │ │ │ ├── source-build.yml
│ │ │ │ ├── telemetry-end.yml
│ │ │ │ └── telemetry-start.yml
│ │ │ └── variables
│ │ │ ├── pool-providers.yml
│ │ │ └── sdl-variables.yml
│ │ ├── templates-official
│ │ │ ├── job
│ │ │ │ ├── job.yml
│ │ │ │ ├── onelocbuild.yml
│ │ │ │ ├── publish-build-assets.yml
│ │ │ │ ├── source-build.yml
│ │ │ │ └── source-index-stage1.yml
│ │ │ ├── jobs
│ │ │ │ ├── codeql-build.yml
│ │ │ │ ├── jobs.yml
│ │ │ │ └── source-build.yml
│ │ │ ├── post-build
│ │ │ │ ├── common-variables.yml
│ │ │ │ ├── post-build.yml
│ │ │ │ ├── setup-maestro-vars.yml
│ │ │ │ └── trigger-subscription.yml
│ │ │ ├── steps
│ │ │ │ ├── add-build-to-channel.yml
│ │ │ │ ├── build-reason.yml
│ │ │ │ ├── component-governance.yml
│ │ │ │ ├── execute-codeql.yml
│ │ │ │ ├── execute-sdl.yml
│ │ │ │ ├── generate-sbom.yml
│ │ │ │ ├── publish-logs.yml
│ │ │ │ ├── retain-build.yml
│ │ │ │ ├── send-to-helix.yml
│ │ │ │ └── source-build.yml
│ │ │ └── variables
│ │ │ ├── pool-providers.yml
│ │ │ └── sdl-variables.yml
│ │ ├── tools.ps1
│ │ └── tools.sh
│ ├── SourceBuildPrebuiltBaseline.xml
│ ├── SourceBuild.props
│ ├── Version.Details.xml
│ └── Versions.props
├── global.json
├── LICENSE.md
├── NuGet.config
├── README.md
├── repack.ps1
├── samples
│ ├── DragonFruit
│ │ ├── Directory.Build.props
│ │ ├── Directory.Build.targets
│ │ ├── DragonFruit.csproj
│ │ └── Program.cs
│ ├── HostingPlayground
│ │ ├── appsettings.json
│ │ ├── Greeter.cs
│ │ ├── GreeterOptions.cs
│ │ ├── HostingPlayground.csproj
│ │ ├── HostingPlaygroundLogEvents.cs
│ │ ├── IGreeter.cs
│ │ └── Program.cs
│ └── RenderingPlayground
│ ├── Colorizer.cs
│ ├── ColorsView.cs
│ ├── Directory.Build.props
│ ├── Directory.Build.targets
│ ├── DirectoryTableView.cs
│ ├── ProcessesView.cs
│ ├── Program.cs
│ ├── RenderingPlayground.csproj
│ └── SampleName.cs
├── SECURITY.md
├── sourcebuild.slnf
├── src
│ ├── Common
│ │ ├── ArgumentBuilder.cs
│ │ └── OptionBuilder.cs
│ ├── System.CommandLine
│ │ ├── AliasSet.cs
│ │ ├── ArgumentArity.cs
│ │ ├── Argument{T}.cs
│ │ ├── ArgumentValidation.cs
│ │ ├── Binding
│ │ │ ├── ArgumentConversionResult.cs
│ │ │ ├── ArgumentConversionResultType.cs
│ │ │ ├── ArgumentConverter.cs
│ │ │ ├── ArgumentConverter.DefaultValues.cs
│ │ │ ├── ArgumentConverter.StringConverters.cs
│ │ │ ├── TryConvertArgument.cs
│ │ │ └── TypeExtensions.cs
│ │ ├── ChildSymbolList{T}.cs
│ │ ├── CliArgument.cs
│ │ ├── CliCommand.cs
│ │ ├── CliConfiguration.cs
│ │ ├── CliDirective.cs
│ │ ├── CliOption.cs
│ │ ├── CliOption{T}.cs
│ │ ├── CliRootCommand.cs
│ │ ├── CliSymbol.cs
│ │ ├── CommandLineConfigurationException.cs
│ │ ├── Completions
│ │ │ ├── CompletionAction.cs
│ │ │ ├── CompletionContext.cs
│ │ │ ├── CompletionItem.cs
│ │ │ ├── SuggestDirective.cs
│ │ │ └── TextCompletionContext.cs
│ │ ├── CompletionSourceExtensions.cs
│ │ ├── ConsoleHelpers.cs
│ │ ├── Directory.Build.props
│ │ ├── EnumerableExtensions.cs
│ │ ├── EnvironmentVariablesDirective.cs
│ │ ├── Help
│ │ │ ├── HelpBuilder.cs
│ │ │ ├── HelpBuilder.Default.cs
│ │ │ ├── HelpBuilderExtensions.cs
│ │ │ ├── HelpContext.cs
│ │ │ ├── HelpOptionAction.cs
│ │ │ ├── HelpOption.cs
│ │ │ └── TwoColumnHelpRow.cs
│ │ ├── Invocation
│ │ │ ├── AnonymousAsynchronousCliAction.cs
│ │ │ ├── AnonymousSynchronousCliAction.cs
│ │ │ ├── AsynchronousCliAction.cs
│ │ │ ├── CliAction.cs
│ │ │ ├── InvocationPipeline.cs
│ │ │ ├── ParseErrorAction.cs
│ │ │ ├── ProcessTerminationHandler.cs
│ │ │ └── SynchronousCliAction.cs
│ │ ├── LocalizationResources.cs
│ │ ├── OptionValidation.cs
│ │ ├── ParseDiagramDirective.cs
│ │ ├── ParseResult.cs
│ │ ├── Parsing
│ │ │ ├── ArgumentResult.cs
│ │ │ ├── CliParser.cs
│ │ │ ├── CliToken.cs
│ │ │ ├── CliTokenType.cs
│ │ │ ├── CommandResult.cs
│ │ │ ├── DirectiveResult.cs
│ │ │ ├── OptionResult.cs
│ │ │ ├── ParseDiagramAction.cs
│ │ │ ├── ParseError.cs
│ │ │ ├── ParseOperation.cs
│ │ │ ├── StringExtensions.cs
│ │ │ ├── SymbolResult.cs
│ │ │ ├── SymbolResultExtensions.cs
│ │ │ ├── SymbolResultTree.cs
│ │ │ └── TryReplaceToken.cs
│ │ ├── Properties
│ │ │ ├── Resources.Designer.cs
│ │ │ ├── Resources.resx
│ │ │ └── xlf
│ │ │ ├── Resources.cs.xlf
│ │ │ ├── Resources.de.xlf
│ │ │ ├── Resources.es.xlf
│ │ │ ├── Resources.fr.xlf
│ │ │ ├── Resources.it.xlf
│ │ │ ├── Resources.ja.xlf
│ │ │ ├── Resources.ko.xlf
│ │ │ ├── Resources.pl.xlf
│ │ │ ├── Resources.pt-BR.xlf
│ │ │ ├── Resources.ru.xlf
│ │ │ ├── Resources.tr.xlf
│ │ │ ├── Resources.zh-Hans.xlf
│ │ │ └── Resources.zh-Hant.xlf
│ │ ├── SymbolExtensions.cs
│ │ ├── SymbolNode.cs
│ │ ├── System.CommandLine.Config.cs
│ │ ├── System.CommandLine.csproj
│ │ ├── System.Diagnostics.CodeAnalysis
│ │ │ ├── DynamicallyAccessedMembersAttribute.cs
│ │ │ ├── DynamicallyAccessedMemberTypes.cs
│ │ │ └── UnconditionalSuppressMessageAttribute.cs
│ │ ├── System.Runtime.CompilerServices
│ │ │ └── IsExternalInit.cs
│ │ └── VersionOption.cs
│ ├── System.CommandLine.ApiCompatibility.Tests
│ │ ├── ApiCompatibilityApprovalTests.cs
│ │ ├── ApiCompatibilityApprovalTests.System_CommandLine_api_is_not_changed.approved.txt
│ │ ├── ApiCompatibilityApprovalTests.System_CommandLine_Hosting_api_is_not_changed.approved.txt
│ │ ├── ApiCompatibilityApprovalTests.System_CommandLine_NamingConventionBinder_api_is_not_changed.approved.txt
│ │ ├── ApiContract.cs
│ │ ├── Directory.Build.props
│ │ ├── LocalizationTests.cs
│ │ └── System.CommandLine.ApiCompatibility.Tests.csproj
│ ├── System.CommandLine.Benchmarks
│ │ ├── Categories.cs
│ │ ├── CommandLine
│ │ │ ├── Perf_Parser_CustomScenarios.cs
│ │ │ ├── Perf_Parser_Directives_Suggest.cs
│ │ │ ├── Perf_Parser_NestedCommands.cs
│ │ │ ├── Perf_Parser_Options_Bare.cs
│ │ │ ├── Perf_Parser_Options_With_Arguments.cs
│ │ │ ├── Perf_Parser_ParseResult.cs
│ │ │ ├── Perf_Parser_Simple.cs
│ │ │ ├── Perf_Parser_TypoCorrection.cs
│ │ │ └── Perf_Suggestions.cs
│ │ ├── DragonFruit
│ │ │ ├── Perf_CommandLine_EntryPoint.cs
│ │ │ ├── Perf_CommandLine_Help.cs
│ │ │ └── Perf_XmlDocReader.cs
│ │ ├── Helpers
│ │ │ ├── BdnParam.cs
│ │ │ ├── NullStreamWriter.cs
│ │ │ └── Utils.cs
│ │ ├── Input
│ │ │ └── Sample1.Main.cs
│ │ ├── Program.cs
│ │ ├── RecommendedConfig.cs
│ │ ├── System.CommandLine.Benchmarks.csproj
│ │ ├── System.CommandLine.Benchmarks.net5.0.v3.ncrunchproject
│ │ └── System.CommandLine.Benchmarks.v3.ncrunchproject
│ ├── System.CommandLine.DragonFruit
│ │ ├── CommandHelpMetadata.cs
│ │ ├── CommandLine.cs
│ │ ├── Directory.Build.props
│ │ ├── EntryPointDiscoverer.cs
│ │ ├── StringExtensions.cs
│ │ ├── System.CommandLine.DragonFruit.csproj
│ │ ├── targets
│ │ │ ├── System.CommandLine.DragonFruit.props
│ │ │ └── System.CommandLine.DragonFruit.targets
│ │ └── XmlDocReader.cs
│ ├── System.CommandLine.DragonFruit.Tests
│ │ ├── CommandLineTests.cs
│ │ ├── ConfigureFromMethodTests.cs
│ │ ├── EntryPointCreatorTests.cs
│ │ ├── StringExtensionTests.cs
│ │ ├── System.CommandLine.DragonFruit.Tests.csproj
│ │ ├── TestProgram.cs
│ │ └── XmlDocReaderTests.cs
│ ├── System.CommandLine.Generator
│ │ ├── CommandHandlerSourceGenerator.cs
│ │ ├── Directory.Build.props
│ │ ├── Invocations
│ │ │ ├── ConstructorModelBindingInvocation.cs
│ │ │ ├── DelegateInvocation.cs
│ │ │ └── ReturnPattern.cs
│ │ ├── Parameters
│ │ │ ├── ArgumentParameter.cs
│ │ │ ├── BindingContextParameter.cs
│ │ │ ├── ConsoleParameter.cs
│ │ │ ├── OptionParameter.cs
│ │ │ ├── Parameter.cs
│ │ │ ├── ParseResultParameter.cs
│ │ │ ├── PropertyParameter.cs
│ │ │ └── RawParameter.cs
│ │ ├── SyntaxReceiver.cs
│ │ ├── System.CommandLine.Generator.csproj
│ │ └── WellKnownTypes.cs
│ ├── System.CommandLine.Generator.CommandHandler
│ │ ├── CommandExtensions.cs
│ │ └── System.CommandLine.Generator.CommandHandler.csproj
│ ├── System.CommandLine.Generator.Tests
│ │ ├── Directory.Build.props
│ │ ├── GeneratedCommandHandlerTests.cs
│ │ └── System.CommandLine.Generator.Tests.csproj
│ ├── System.CommandLine.Hosting
│ │ ├── Directory.Build.props
│ │ ├── HostingAction.cs
│ │ ├── HostingExtensions.cs
│ │ ├── InvocationLifetime.cs
│ │ ├── InvocationLifetimeOptions.cs
│ │ └── System.CommandLine.Hosting.csproj
│ ├── System.CommandLine.Hosting.Tests
│ │ ├── HostingHandlerTest.cs
│ │ ├── HostingTests.cs
│ │ └── System.CommandLine.Hosting.Tests.csproj
│ ├── System.CommandLine.NamingConventionBinder
│ │ ├── BindingContext.cs
│ │ ├── BindingContextExtensions.cs
│ │ ├── BindingHandler.cs
│ │ ├── BoundValue.cs
│ │ ├── CommandHandler.cs
│ │ ├── CommandResultExtensions.cs
│ │ ├── ConstructorDescriptor.cs
│ │ ├── DelegateHandlerDescriptor.cs
│ │ ├── DelegateValueSource.cs
│ │ ├── Directory.Build.props
│ │ ├── ExpressionExtensions.cs
│ │ ├── HandlerDescriptor.cs
│ │ ├── IMethodDescriptor.cs
│ │ ├── IValueDescriptor.cs
│ │ ├── IValueSource.cs
│ │ ├── MethodInfoHandlerDescriptor.cs
│ │ ├── MissingValueSource.cs
│ │ ├── ModelBinderCollection.cs
│ │ ├── ModelBinder.cs
│ │ ├── ModelBinder{T}.cs
│ │ ├── ModelBindingCommandHandler.cs
│ │ ├── ModelDescriptor.cs
│ │ ├── ParameterDescriptor.cs
│ │ ├── ParseResultMatchingValueSource.cs
│ │ ├── PropertyDescriptor.cs
│ │ ├── ServiceProvider.cs
│ │ ├── ServiceProviderValueSource.cs
│ │ ├── SpecificSymbolValueSource.cs
│ │ ├── System.CommandLine.NamingConventionBinder.csproj
│ │ ├── TypeExtensions.cs
│ │ └── ValueDescriptorDefaultValueSource.cs
│ ├── System.CommandLine.NamingConventionBinder.Tests
│ │ ├── BindingTestCase.cs
│ │ ├── BindingTestSet.cs
│ │ ├── HandlerDescriptorTests.cs
│ │ ├── ModelBinderTests.cs
│ │ ├── ModelBindingCommandHandlerTests.BindingByName.cs
│ │ ├── ModelBindingCommandHandlerTests.cs
│ │ ├── ModelDescriptorTests.cs
│ │ ├── ParameterBindingTests.cs
│ │ ├── ParameterDescriptorTests.cs
│ │ ├── PropertyDescriptorTests.cs
│ │ └── System.CommandLine.NamingConventionBinder.Tests.csproj
│ ├── System.CommandLine.Rendering
│ │ ├── AnsiControlCode.cs
│ │ ├── Ansi.cs
│ │ ├── AnsiRenderingSpanVisitor.cs
│ │ ├── BackgroundColorSpan.cs
│ │ ├── ColorSpan.cs
│ │ ├── ConsoleExtensions.cs
│ │ ├── ConsoleFormatInfo.cs
│ │ ├── ConsoleRenderer.cs
│ │ ├── ContainerSpan.cs
│ │ ├── ContentRenderingSpanVisitor.cs
│ │ ├── ContentSpan.cs
│ │ ├── ControlSpan.cs
│ │ ├── CursorControlSpan.cs
│ │ ├── Directory.Build.props
│ │ ├── EntireTerminalRegion.cs
│ │ ├── FileRenderingSpanVisitor.cs
│ │ ├── ForegroundColorSpan.cs
│ │ ├── IConsole.cs
│ │ ├── Interop.Windows.cs
│ │ ├── IO
│ │ │ ├── IStandardError.cs
│ │ │ ├── IStandardIn.cs
│ │ │ ├── IStandardOut.cs
│ │ │ ├── IStandardStreamWriter.cs
│ │ │ ├── StandardStreamWriter.cs
│ │ │ ├── SystemConsole.cs
│ │ │ └── TestConsole.cs
│ │ ├── IRenderable.cs
│ │ ├── ITerminal.cs
│ │ ├── NonAnsiRenderingSpanVisitor.cs
│ │ ├── OutputMode.cs
│ │ ├── RecordingWriter.cs
│ │ ├── Region.cs
│ │ ├── RgbColor.cs
│ │ ├── ScrollingTerminalRegion.cs
│ │ ├── Size.cs
│ │ ├── SpanMeasuringVisitor.cs
│ │ ├── StringExtensions.cs
│ │ ├── StyleSpan.cs
│ │ ├── System.CommandLine.Rendering.csproj
│ │ ├── SystemConsoleTerminal.cs
│ │ ├── TerminalBase.cs
│ │ ├── Terminal.cs
│ │ ├── TestTerminal.cs
│ │ ├── TextSpan.cs
│ │ ├── TextSpanFormatter.cs
│ │ ├── TextSpanVisitor.cs
│ │ ├── Views
│ │ │ ├── ColumnDefinition.cs
│ │ │ ├── ContentView.cs
│ │ │ ├── ContentView{T}.cs
│ │ │ ├── GridView.cs
│ │ │ ├── ItemsView.cs
│ │ │ ├── LayoutView.cs
│ │ │ ├── Orientation.cs
│ │ │ ├── RowDefinition.cs
│ │ │ ├── ScreenView.cs
│ │ │ ├── SizeMode.cs
│ │ │ ├── StackLayoutView.cs
│ │ │ ├── TableViewColumn.cs
│ │ │ ├── TableView.cs
│ │ │ └── View.cs
│ │ ├── VirtualTerminal.cs
│ │ ├── VirtualTerminalMode.cs
│ │ └── WrappingExtensions.cs
│ ├── System.CommandLine.Rendering.Tests
│ │ ├── AnsiControlCodeTests.cs
│ │ ├── AnsiTests.cs
│ │ ├── ConsoleFormatInfoTests.cs
│ │ ├── ConsoleRendererTests.cs
│ │ ├── ContainerSpanTests.cs
│ │ ├── ControlSpanTests.cs
│ │ ├── Example_TOP.cs
│ │ ├── OutputFormattingTests.cs
│ │ ├── RegionTests.cs
│ │ ├── RenderingTestCase.cs
│ │ ├── SizeTests.cs
│ │ ├── System.CommandLine.Rendering.Tests.csproj
│ │ ├── SystemConsoleTerminalTests.cs
│ │ ├── TableRenderingTests.cs
│ │ ├── TerminalModeTests.cs
│ │ ├── TerminalTests.cs
│ │ ├── TestTerminalTests.cs
│ │ ├── TextSpanFormatterTests.cs
│ │ ├── TextSpanTests.cs
│ │ ├── TextSpanVisitorTests.cs
│ │ ├── TextStyleRenderingTests.cs
│ │ ├── ViewRenderingTests.cs
│ │ ├── Views
│ │ │ ├── ColumnDefinitionTests.cs
│ │ │ ├── ContentViewTests.cs
│ │ │ ├── ContentView{T}Tests.cs
│ │ │ ├── GridViewTests.cs
│ │ │ ├── LayoutViewTests.cs
│ │ │ ├── RowDefinitionTests.cs
│ │ │ ├── ScreenViewTests.cs
│ │ │ └── StackLayoutViewTests.cs
│ │ ├── ViewWrappingTests.cs
│ │ ├── WordWrappingTests.cs
│ │ └── WrappingExtensionsTests.cs
│ ├── System.CommandLine.Suggest
│ │ ├── build-and-install.ps1
│ │ ├── CombineSuggestionRegistration.cs
│ │ ├── Directory.Build.props
│ │ ├── DotnetMuxer.cs
│ │ ├── DotnetProfileDirectory.cs
│ │ ├── dotnet-suggest.csproj
│ │ ├── dotnet-suggest-shim.bash
│ │ ├── dotnet-suggest-shim.ps1
│ │ ├── dotnet-suggest-shim.zsh
│ │ ├── FileEnumerator.cs
│ │ ├── FileSuggestionRegistration.cs
│ │ ├── GlobalToolsSuggestionRegistration.cs
│ │ ├── ISuggestionRegistration.cs
│ │ ├── ISuggestionStore.cs
│ │ ├── PathExtensions.cs
│ │ ├── Program.cs
│ │ ├── RegistrationPair.cs
│ │ ├── ShellType.cs
│ │ ├── StringExtensions.cs
│ │ ├── SuggestionDispatcher.cs
│ │ ├── SuggestionShellScriptException.cs
│ │ ├── SuggestionShellScriptHandler.cs
│ │ └── SuggestionStore.cs
│ ├── System.CommandLine.Suggest.Tests
│ │ ├── DotnetSuggestEndToEndTests.cs
│ │ ├── dotnet-suggest.Tests.csproj
│ │ ├── EndToEndTestApp
│ │ │ ├── EndToEndTestApp.csproj
│ │ │ └── Program.cs
│ │ ├── FileEnumeratorTests.cs
│ │ ├── FileSuggestionProviderTests.cs
│ │ ├── GlobalToolsSuggestionRegistrationTests.cs
│ │ ├── SuggestionDispatcherTests.cs
│ │ ├── SuggestionRegistrationTest.cs
│ │ ├── SuggestionShellScriptHandlerTest.cs
│ │ ├── TestSuggestionRegistration.cs
│ │ └── TestSuggestionRegistrationTests.cs
│ ├── System.CommandLine.Tests
│ │ ├── ArgumentTests.cs
│ │ ├── Binding
│ │ │ ├── TestModels.cs
│ │ │ └── TypeConversionTests.cs
│ │ ├── CommandLineConfigurationTests.cs
│ │ ├── CommandTests.cs
│ │ ├── CompilationTests.cs
│ │ ├── CompletionContextTests.cs
│ │ ├── CompletionTests.cs
│ │ ├── CustomParsingTests.cs
│ │ ├── DirectiveTests.cs
│ │ ├── Directory.Build.props
│ │ ├── EnvironmentVariableDirectiveTests.cs
│ │ ├── GetValueByNameParserTests.cs
│ │ ├── GlobalOptionTests.cs
│ │ ├── Help
│ │ │ ├── Approvals
│ │ │ │ └── HelpBuilderTests.Help_layout_has_not_changed.approved.txt
│ │ │ ├── ApprovalTests.Config.cs
│ │ │ ├── HelpBuilderExtensions.cs
│ │ │ ├── HelpBuilderTests.Approval.cs
│ │ │ ├── HelpBuilderTests.cs
│ │ │ └── HelpBuilderTests.Customization.cs
│ │ ├── HelpOptionTests.cs
│ │ ├── Invocation
│ │ │ ├── CancelOnProcessTerminationTests.cs
│ │ │ ├── InvocationTests.cs
│ │ │ └── TypoCorrectionTests.cs
│ │ ├── OptionTests.cs
│ │ ├── OptionTests.MultipleArgumentsPerToken.cs
│ │ ├── ParseDiagramTests.cs
│ │ ├── ParseDirectiveTests.cs
│ │ ├── ParseErrorReportingTests.cs
│ │ ├── ParseResultTests.cs
│ │ ├── ParserTests.cs
│ │ ├── ParserTests.DoubleDash.cs
│ │ ├── ParserTests.MultipleArguments.cs
│ │ ├── ParserTests.MultiplePositions.cs
│ │ ├── ParserTests.RootCommandAndArg0.cs
│ │ ├── ParserTests.SetupErrors.cs
│ │ ├── Parsing
│ │ │ └── CommandLineStringSplitterTests.cs
│ │ ├── ParsingValidationTests.cs
│ │ ├── ResponseFileTests.cs
│ │ ├── RootCommandTests.cs
│ │ ├── SplitCommandLineTests.cs
│ │ ├── SuggestDirectiveTests.cs
│ │ ├── System.CommandLine.Tests.csproj
│ │ ├── TestApps
│ │ │ ├── NativeAOT
│ │ │ │ ├── NativeAOT.csproj
│ │ │ │ └── Program.cs
│ │ │ └── Trimming
│ │ │ ├── Program.cs
│ │ │ └── Trimming.csproj
│ │ ├── TestCliActions.cs
│ │ ├── TokenReplacementTests.cs
│ │ ├── UseExceptionHandlerTests.cs
│ │ ├── Utility
│ │ │ ├── AssertionExtensions.cs
│ │ │ ├── LinuxOnlyTheory.cs
│ │ │ ├── NonWindowsOnlyFactAttribute.cs
│ │ │ ├── ParseResultExtensions.cs
│ │ │ ├── Process.cs
│ │ │ ├── ReleaseBuildOnlyFactAttribute.cs
│ │ │ ├── ReleaseBuildOnlyTheoryAttribute.cs
│ │ │ ├── RemoteExecution.cs
│ │ │ ├── RemoteExecutor.cs
│ │ │ └── WindowsOnlyFactAttribute.cs
│ │ └── VersionOptionTests.cs
│ └── System.Diagnostics.CodeAnalysis.cs
├── System.CommandLine.sln
└── System.CommandLine.v3.ncrunchsolution
87 directories, 599 files
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论