Skip to content

Conversation

@paddycarver
Copy link
Member

Add the concept of middleware, which can run before a Command's Handler runs but after the Command has been routed to.

Use middleware to implement a default HelpMiddleware, which can detect a specific flag being passed and display help output.

Use middleware to implement a default VersionMiddleware, which can detect a specific flag being passed and display version output.

@paddycarver paddycarver force-pushed the help branch 3 times, most recently from 17b9255 to 5ff9cb5 Compare May 6, 2025 11:46
Add the concept of middleware, which can run before a Command's Handler
runs but after the Command has been routed to.

Use middleware to implement a default HelpMiddleware, which can detect a
specific flag being passed and display help output.

Use middleware to implement a default VersionMiddleware, which can
detect a specific flag being passed and display version output.
@paddycarver paddycarver merged commit be23fea into main May 6, 2025
4 checks passed
@paddycarver paddycarver deleted the help branch May 6, 2025 11:49
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.

1 participant