fabric/fabric — pull request #709 by rsaikali (2012-08-20 11:32:51+00:00)
Title: List of tasks to be executed

Hi,

Changes allow user to list tasks that will be executed calling ```env.tasks```.

As ```fabric.state.commands.keys()``` stores all fabfile tasks.
Now ```env.tasks``` returns the list of tasks asked to be executed.

```
$ fab -H myhost task1 task2

>>> fabric.state.commands.keys()
['task1', 'task2', 'task3', 'task4']

>>> env.tasks
['task1', 'task2']
```

Regards.