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

autoprint generators correctly #992

Open
anarcat opened this issue Apr 11, 2024 · 0 comments
Open

autoprint generators correctly #992

anarcat opened this issue Apr 11, 2024 · 0 comments

Comments

@anarcat
Copy link

anarcat commented Apr 11, 2024

if i have a task like this:

@task(autoprint=True)
def list_things(con):
    for thing in range(3):
        yield thing

invoke (well, fabric, in my case, but all the same right?) will do this:

$ fab list_things
<generator object _list_remote_repos at 0x7fee70de2d40>

I don't find that very pretty, and think it would be much more elegant to do:

$ fab list_things
1
2
3

no? :)

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

No branches or pull requests

1 participant