Skip to content

Add ASP.NET-style middleware pipeline for CLI apps#144

Merged
cloudfy merged 1 commit intomainfrom
124-arcturusextensionscommandline-upgrade-nuget-21-and-refactor
Mar 7, 2026
Merged

Add ASP.NET-style middleware pipeline for CLI apps#144
cloudfy merged 1 commit intomainfrom
124-arcturusextensionscommandline-upgrade-nuget-21-and-refactor

Conversation

@cloudfy
Copy link
Copy Markdown
Owner

@cloudfy cloudfy commented Mar 7, 2026

Introduces a command-line middleware pipeline inspired by ASP.NET Core, enabling registration and execution of middleware components for CLI applications. Adds abstractions for CommandLineContext, CommandLineDelegate, and ICommandLineMiddleware. Includes CommandLineBuilderConfiguration for managing builder and middleware configuration. Adds extension methods to IHost for UseHelp and UseMiddleware. Updates RunConsoleCommands to execute the middleware pipeline. Enhances option reflection with required/nullable detection. Adds colored console output utility (CliConsole). Updates documentation and improves command-line builder configuration.

Summary & Motivation

A brief description of the changes in this pull request explaining why these changes are necessary. Please delete this paragraph.

Checklist

  • I have added tests, or done manual regression tests
  • I have updated the documentation, if necessary

Introduces a command-line middleware pipeline inspired by ASP.NET Core, enabling registration and execution of middleware components for CLI applications. Adds abstractions for CommandLineContext, CommandLineDelegate, and ICommandLineMiddleware. Includes CommandLineBuilderConfiguration for managing builder and middleware configuration. Adds extension methods to IHost for UseHelp and UseMiddleware<T>. Updates RunConsoleCommands to execute the middleware pipeline. Enhances option reflection with required/nullable detection. Adds colored console output utility (CliConsole). Updates documentation and improves command-line builder configuration.
@cloudfy cloudfy self-assigned this Mar 7, 2026
@cloudfy cloudfy linked an issue Mar 7, 2026 that may be closed by this pull request
@cloudfy cloudfy merged commit c468b6c into main Mar 7, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Arcturus.Extensions.CommandLine] Upgrade nuget 2.1 and refactor

1 participant