Skip to content

Conversation

@snopoke
Copy link
Collaborator

@snopoke snopoke commented Nov 1, 2023

Provide data to tasks without the need to pass it in directly to every call.

from taskbadger import current_scope, create_task

with current_scope() as scope:
    scope["foo"] = "bar"
    create_task("my task 1")
    create_task("my task 2")
    create_task("my task 3")

@snopoke snopoke merged commit 2fef54e into main Nov 1, 2023
@snopoke snopoke deleted the sk/scope branch November 1, 2023 15:50
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.

2 participants