Skip to content

Add SetHandler overrides for command returning an exit code #1570

Closed
@dgolub

Description

@dgolub

The original CommandHandler.Create API supports handler functions that return int so that the command can return an exit code other than 0 if there's an error. It looks like the new SetHandler API requires that the handler function return either void or Task. Can we add overrides for int and Task<int> before GA? Thanks!

Metadata

Metadata

Assignees

Labels

Area-APIbugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions