dotnet / command-line-api

Command line parsing, invocation, and rendering of terminal output.
https://github.com/dotnet/command-line-api/wiki
MIT License
3.42k stars 383 forks source link

Do we need post actions? #2161

Open KathleenDollard opened 1 year ago

KathleenDollard commented 1 year ago

The previous middleware pipeline allowed actions to be performed both before and after the next step in the middleware pipeline. As we replace that pipeline with CliAction we made a change to accomodate pre-actions that come before the selected command's action runs. These are called non-exclusive actions in #2147.

We are considering whether to support post actions. Current argument set:

So, if you were doing things in a custom middleware step after the next step returned, please let us know!

jonsequitur commented 1 year ago

Against: We do not have an actual scenario

This is one, potentially: https://github.com/dotnet/command-line-api/issues/2156#issuecomment-1507328778