-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Elevator Pitch
Allow a task to declare return values other than the defaults to be considered "successful".
Motivation
Some CLI commands return exotic status codes to indicate failures that can be anticipated.
Some python functions return non-truthy/none values when successful.
Design Ideas
- create a new extension point, e.g.
Passers - add a simple, regular-expression based one for strings
- add a
pyone for user-defined ones - if set, intercept the return values, and see if any of them match
# pyproject.toml
[tool.doitoml.tasks.rebot]
meta = { doitoml ={pass=["252"]}}
actions = [["rebot", "some/output.xml]]Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request