I've got a default.ps1 file with several tasks, some of which I don't use all too often.
Instead of opening the file and grep'ing for the Tasks, is there a way to list them in the command line? Ideally with some description attached to them (that would be set near the tasks).
I'm thinking of something similar to what rake does with -t (see here for example)
Run:
invoke-psake -docs
This will list all the defined tasks.
Output columns are:
I tried to visualize the task dependencies.
Not exactly what you wanted, but could help you. Look at psake-contrib/debugging.psm1 (it needs DLLs from https://github.com/stej/psake-contrib/tree/master/lib). Basically you call psake the same way as usually but instead of calling psake tasks, the tasks tree is displayed.
It doesn't display all the tasks, only the tasks that you specified on command line. Could be added though :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With