Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Powderhouse removed CliExit and fluent style for pipeline execution #2431

Conversation

KathleenDollard
Copy link
Contributor

  • Removed CLIExit (now using PipelineResult)
    • PipelineResult is now returned from methods that create it and do other things.
  • Renamed Handled to AlreadyHandled

The SetSuccess and NotRun methods are intended to abstract what those conditions mean from the actual properties that are set, probably making them private after discussio. I have more confidence in SetSuccess than NotRun
@KathleenDollard KathleenDollard added the Powderhouse Work to isolate parser and features label May 27, 2024
/// <returns>A CliExit object with information such as whether the CLI should terminate</returns>
protected internal virtual CliExit Execute(PipelineResult pipelineResult)
=> CliExit.NotRun(pipelineResult.ParseResult);
/// <returns>A PipelineResult object with information such as whether the CLI should terminate</returns>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <returns>A PipelineResult object with information such as whether the CLI should terminate</returns>

Comment on lines +18 to +21
public void NotRun(ParseResult? parseResult)
{
// no op because defaults are false and 0
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is going to be a no-op should we simply remove the method as not calling it does the same thing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created an issue on this: #2443

@KathleenDollard KathleenDollard merged commit 9395d84 into dotnet:main-powderhouse Jun 11, 2024
10 checks passed
@KathleenDollard KathleenDollard deleted the powderhouse-kad-removed-fluent-returns branch June 11, 2024 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Powderhouse Work to isolate parser and features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants