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

Enable targets with parameters #6

Closed
LachlanMarnham opened this issue Jan 13, 2022 · 0 comments · Fixed by #27
Closed

Enable targets with parameters #6

LachlanMarnham opened this issue Jan 13, 2022 · 0 comments · Fixed by #27
Assignees
Labels
enhancement New feature or request

Comments

@LachlanMarnham
Copy link
Owner

LachlanMarnham commented Jan 13, 2022

Design:

registry = Registry()

@registry.register_target
def new_target(param_1, param_2='default'):
    print(param_1, param_2)

Invocation:

$ begin new_target --param_1 hello --param_2 world
hello world
@LachlanMarnham LachlanMarnham self-assigned this Jan 18, 2022
@LachlanMarnham LachlanMarnham added the enhancement New feature or request label Jan 18, 2022
@LachlanMarnham LachlanMarnham linked a pull request Jan 21, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant