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

Allow grouping of tasks #1315

Closed
tuukkamustonen opened this issue Apr 16, 2015 · 2 comments
Closed

Allow grouping of tasks #1315

tuukkamustonen opened this issue Apr 16, 2015 · 2 comments

Comments

@tuukkamustonen
Copy link

Instead of fab -l giving out something like:

setup                   ...
workon                  ...
clean                   ...
analyze                 ...
test                    ...
run                     ...
doc                     ...
release                 ...
create_env              ...
update_env              ...
delete_env              ...
func_test               ...
perf_test               ...

I would be nice to get:

Initialize:
  setup                   ...
  workon                  ...

 Dev:
  clean                   ...
  analyze                 ...
  test                    ...
  run                     ...

Doc:
  doc                     ...

Release:
  release                 ...

Deploy:
  create_env              ...
  update_env              ...
  delete_env              ...

Test:
  func_test               ...
  perf_test               ...

Namespaces are not a solution to this as:

  1. they require also the namespace to be given when invoking tasks (here the tasks are just grouped, they are invoked as before)
  2. I don't want to split out my tasks into several files, as my fabfile is already rather simple

Could this be supported through something like:

@task(group='Dev')

Not quite sure how this grouping and namespaces would mix?

@JensRantil
Copy link

Proposed new title: Allow grouping when listing tasks. Otherwise we risk mixing up this issue with #1772.

@bitprophet
Copy link
Member

This is fixed if you upgrade Invoke to, I think 1.2? It's out in a stable release now either way, check pyinvoke.org. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants