Skip to content

CliCommand.run optionally return exit code#248

Open
TimothyWillard wants to merge 1 commit intomainfrom
exit-codes
Open

CliCommand.run optionally return exit code#248
TimothyWillard wants to merge 1 commit intomainfrom
exit-codes

Conversation

@TimothyWillard
Copy link
Copy Markdown
Collaborator

Description

Updated the CliCommand.run method's return signature to ExitCode | None where ExitCode is a new IntEnum added to flepimop2.typing. This creates consistent exit codes across CLI commands.

Related issues

Closes #17.

Checklist

  • I have read through and understand the pull request process.
  • I ran successfully ran CI local via just ci.
  • I have updated the CHANGELOG.md or noted "no major changes" in my commit if the PR is small.

Updated the `CliCommand.run` method's return signature to `ExitCode |
None` where `ExitCode` is a new `IntEnum` added to `flepimop2.typing`.
This creates consistent exit codes across CLI commands.

Closes #17.
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.

Change CliCommand.run return to exit code

1 participant