-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
[Feature request] Implicit print #61
Comments
Changing poethepoet/poethepoet/task/script.py Line 57 in e9cabc3
|
Sounds about right and I wouldn't mind contributing with a PR, but I'm not sure on how I should handle the configuration. |
The title of this issue is “implicit print” so maybe you would like it to print the return value if the return value is not
I believe it’s |
Hi @XF-FW, thanks for the feedback. I see how that would be useful. I would accept a PR to enable something along the lines of: [tool.poe.tasks]
get_random_secret_key = { script = "django.core.management.utils:get_random_secret_key()", print_result = true } Check the contributing guide. You'll need to register an option for the script task type (see how it's done for the sequence task type) and a test case here. |
I've implemented this feature on the development branch and it will be included in the next release. |
Hello there,
I'm trying to add something like this:
The function however, returns a string and does not print its result. Would it be possible to have an option to print the return values of a given function?
Thank you.
The text was updated successfully, but these errors were encountered: